diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2012-05-09 23:19:14 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-05-09 23:19:14 +0200 |
commit | 8259573b322ee87d4aad26d4a3ecb737b94da272 (patch) | |
tree | 50100018a75b9b66c7f356268f0f0fdd03da0d88 /arch/arm/mach-omap2/board-flash.h | |
parent | ARM: OMAP3: cm-t35: add support for power off (diff) | |
download | linux-8259573b322ee87d4aad26d4a3ecb737b94da272.tar.xz linux-8259573b322ee87d4aad26d4a3ecb737b94da272.zip |
ARM: OMAP2+: nand: Make board_onenand_init() visible to board code
board_onenand_init() and board_nand_init() initialization functions are
used to initialize OneNAND and NAND memories respectively. But only
board_nand_init() was visible to be used from board code. This patch makes
possible to initialize a OneNAND flash memory within platform code.
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Acked-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-flash.h')
-rw-r--r-- | arch/arm/mach-omap2/board-flash.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-flash.h b/arch/arm/mach-omap2/board-flash.h index d25503a98417..c44b70d52021 100644 --- a/arch/arm/mach-omap2/board-flash.h +++ b/arch/arm/mach-omap2/board-flash.h @@ -47,3 +47,14 @@ static inline void board_nand_init(struct mtd_partition *nand_parts, { } #endif + +#if defined(CONFIG_MTD_ONENAND_OMAP2) || \ + defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) +extern void board_onenand_init(struct mtd_partition *nand_parts, + u8 nr_parts, u8 cs); +#else +static inline void board_onenand_init(struct mtd_partition *nand_parts, + u8 nr_parts, u8 cs) +{ +} +#endif |