summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc-onenand.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-10-17 20:07:18 +0200
committerTony Lindgren <tony@atomide.com>2012-10-17 20:07:18 +0200
commit99f0b8d6b09b0db6452d0d6e252bfa28049bbea9 (patch)
tree23db2359ad86957359da7c8a458e25eddb08d776 /arch/arm/mach-omap2/gpmc-onenand.h
parentMerge branch 'omap-for-v3.8/cleanup-headers-dma' into omap-for-v3.8/cleanup-h... (diff)
parentMerge tag 'gpmc-czimage' of git://gitorious.org/x0148406-public/linux-kernel ... (diff)
downloadlinux-99f0b8d6b09b0db6452d0d6e252bfa28049bbea9.tar.xz
linux-99f0b8d6b09b0db6452d0d6e252bfa28049bbea9.zip
Merge branch 'omap-for-v3.8/cleanup-headers-gpmc' into omap-for-v3.8/cleanup-headers
Conflicts: arch/arm/mach-omap2/board-3430sdp.c arch/arm/mach-omap2/board-h4.c arch/arm/mach-omap2/board-rx51-peripherals.c arch/arm/mach-omap2/board-rx51.c arch/arm/mach-omap2/pm34xx.c drivers/mtd/nand/omap2.c drivers/mtd/onenand/omap2.c
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-onenand.h')
-rw-r--r--arch/arm/mach-omap2/gpmc-onenand.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc-onenand.h b/arch/arm/mach-omap2/gpmc-onenand.h
new file mode 100644
index 000000000000..216f23a8b45c
--- /dev/null
+++ b/arch/arm/mach-omap2/gpmc-onenand.h
@@ -0,0 +1,24 @@
+/*
+ * arch/arm/mach-omap2/gpmc-onenand.h
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ */
+
+#ifndef __OMAP2_GPMC_ONENAND_H
+#define __OMAP2_GPMC_ONENAND_H
+
+#include <linux/platform_data/mtd-onenand-omap2.h>
+
+#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
+extern void gpmc_onenand_init(struct omap_onenand_platform_data *d);
+#else
+#define board_onenand_data NULL
+static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d)
+{
+}
+#endif
+
+#endif