summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc-nand.h
diff options
context:
space:
mode:
authorAfzal Mohammed2012-09-29 08:56:13 +0200
committerAfzal Mohammed2012-10-15 11:12:05 +0200
commitbc3668ea046be9e841eecfab04bddfa759e765d6 (patch)
tree48dd86e24b260351feed63499d277dc61e7f5a98 /arch/arm/mach-omap2/gpmc-nand.h
parentARM: OMAP2+: onenand: header cleanup (diff)
downloadkernel-qcow2-linux-bc3668ea046be9e841eecfab04bddfa759e765d6.tar.gz
kernel-qcow2-linux-bc3668ea046be9e841eecfab04bddfa759e765d6.tar.xz
kernel-qcow2-linux-bc3668ea046be9e841eecfab04bddfa759e765d6.zip
ARM: OMAP2+: nand: header cleanup
For common arm zImage existing nand header file in platform specific location was moved to generic platform data location, but it contained more than platform data, remove it. New local header has been created for exposing functions. Also move gpmc-nand platform data to platform header meant for nand from gpmc header file Signed-off-by: Afzal Mohammed <afzal@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-nand.h')
-rw-r--r--arch/arm/mach-omap2/gpmc-nand.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc-nand.h b/arch/arm/mach-omap2/gpmc-nand.h
new file mode 100644
index 000000000000..11a377f0e6f0
--- /dev/null
+++ b/arch/arm/mach-omap2/gpmc-nand.h
@@ -0,0 +1,27 @@
+/*
+ * arch/arm/mach-omap2/gpmc-nand.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_NAND_H
+#define __OMAP2_GPMC_NAND_H
+
+#include <plat/gpmc.h>
+#include <linux/platform_data/mtd-nand-omap2.h>
+
+#if IS_ENABLED(CONFIG_MTD_NAND_OMAP2)
+extern int gpmc_nand_init(struct omap_nand_platform_data *d,
+ struct gpmc_timings *gpmc_t);
+#else
+static inline int gpmc_nand_init(struct omap_nand_platform_data *d,
+ struct gpmc_timings *gpmc_t)
+{
+ return 0;
+}
+#endif
+
+#endif