aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHåvard Skinnemoen <haavard.skinnemoen@atmel.com>2008-06-06 12:04:56 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-07 03:45:36 -0400
commit62090a08aba579e6c69319fac4d4a1f806f26400 (patch)
tree88af9ba2b768d06d8778018fff9639f95a663627 /include
parente1677ce4e41a7c1bbc35a0dee27d5c7e7d223a4b (diff)
[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 a4e2d28bfb58..cc5906cd7419 100644
--- a/include/asm-avr32/arch-at32ap/board.h
+++ b/include/asm-avr32/arch-at32ap/board.h
@@ -85,4 +85,17 @@ struct platform_device *
85at32_add_device_cf(unsigned int id, unsigned int extint, 85at32_add_device_cf(unsigned int id, unsigned int extint,
86 struct cf_platform_data *data); 86 struct cf_platform_data *data);
87 87
88/* NAND / SmartMedia */
89struct atmel_nand_data {
90 int enable_pin; /* chip enable */
91 int det_pin; /* card detect */
92 int rdy_pin; /* ready/busy */
93 u8 ale; /* address line number connected to ALE */
94 u8 cle; /* address line number connected to CLE */
95 u8 bus_width_16; /* buswidth is 16 bit */
96 struct mtd_partition *(*partition_info)(int size, int *num_partitions);
97};
98struct platform_device *
99at32_add_device_nand(unsigned int id, struct atmel_nand_data *data);
100
88#endif /* __ASM_ARCH_BOARD_H */ 101#endif /* __ASM_ARCH_BOARD_H */