summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHåvard Skinnemoen <haavard.skinnemoen@atmel.com>2008-06-06 18:04:56 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-07 08:45:36 +0100
commit62090a08aba579e6c69319fac4d4a1f806f26400 (patch)
tree88af9ba2b768d06d8778018fff9639f95a663627 /include
parente1677ce4e41a7c1bbc35a0dee27d5c7e7d223a4b (diff)
downloadop-kernel-dev-62090a08aba579e6c69319fac4d4a1f806f26400.zip
op-kernel-dev-62090a08aba579e6c69319fac4d4a1f806f26400.tar.gz
[MTD] [NAND] avr32: atmel_nand platform code for AT32AP700x
This function initializes and adds a platform_device for a NAND flash interface on SMC chip select 3. Signed-off-by: Håvard Skinnemoen <haavard.skinnemoen@atmel.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-avr32/arch-at32ap/board.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h
index a4e2d28..cc5906c 100644
--- a/include/asm-avr32/arch-at32ap/board.h
+++ b/include/asm-avr32/arch-at32ap/board.h
@@ -85,4 +85,17 @@ struct platform_device *
at32_add_device_cf(unsigned int id, unsigned int extint,
struct cf_platform_data *data);
+/* NAND / SmartMedia */
+struct atmel_nand_data {
+ int enable_pin; /* chip enable */
+ int det_pin; /* card detect */
+ int rdy_pin; /* ready/busy */
+ u8 ale; /* address line number connected to ALE */
+ u8 cle; /* address line number connected to CLE */
+ u8 bus_width_16; /* buswidth is 16 bit */
+ struct mtd_partition *(*partition_info)(int size, int *num_partitions);
+};
+struct platform_device *
+at32_add_device_nand(unsigned int id, struct atmel_nand_data *data);
+
#endif /* __ASM_ARCH_BOARD_H */
OpenPOWER on IntegriCloud