diff options
author | Håvard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-06-06 12:04:56 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-06-07 03:45:36 -0400 |
commit | 62090a08aba579e6c69319fac4d4a1f806f26400 (patch) | |
tree | 88af9ba2b768d06d8778018fff9639f95a663627 /include | |
parent | e1677ce4e41a7c1bbc35a0dee27d5c7e7d223a4b (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.h | 13 |
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 * | |||
85 | at32_add_device_cf(unsigned int id, unsigned int extint, | 85 | at32_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 */ | ||
89 | struct 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 | }; | ||
98 | struct platform_device * | ||
99 | at32_add_device_nand(unsigned int id, struct atmel_nand_data *data); | ||
100 | |||
88 | #endif /* __ASM_ARCH_BOARD_H */ | 101 | #endif /* __ASM_ARCH_BOARD_H */ |