summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-flash.h
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-05-09 14:19:14 -0700
committerTony Lindgren <tony@atomide.com>2012-05-09 14:19:14 -0700
commit8259573b322ee87d4aad26d4a3ecb737b94da272 (patch)
tree50100018a75b9b66c7f356268f0f0fdd03da0d88 /arch/arm/mach-omap2/board-flash.h
parentd61676b8f079d39808559e67c48a518fd14411ec (diff)
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.h11
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 d25503a9841..c44b70d5202 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