/arch/arm/plat-omap/include/plat/onenand.h
C++ Header | 43 lines | 23 code | 10 blank | 10 comment | 1 complexity | c0f63df5f5f2b9bea57748a9d66df95a MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
1/* 2 * arch/arm/plat-omap/include/mach/onenand.h 3 * 4 * Copyright (C) 2006 Nokia Corporation 5 * Author: Juha Yrjola 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as 9 * published by the Free Software Foundation. 10 */ 11 12#include <linux/mtd/mtd.h> 13#include <linux/mtd/partitions.h> 14 15#define ONENAND_SYNC_READ (1 << 0) 16#define ONENAND_SYNC_READWRITE (1 << 1) 17 18struct omap_onenand_platform_data { 19 int cs; 20 int gpio_irq; 21 struct mtd_partition *parts; 22 int nr_parts; 23 int (*onenand_setup)(void __iomem *, int freq); 24 int dma_channel; 25 u8 flags; 26}; 27 28#define ONENAND_MAX_PARTITIONS 8 29 30#if defined(CONFIG_MTD_ONENAND_OMAP2) || \ 31 defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) 32 33extern void gpmc_onenand_init(struct omap_onenand_platform_data *d); 34 35#else 36 37#define board_onenand_data NULL 38 39static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d) 40{ 41} 42 43#endif