summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc-smsc911x.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-09-20 11:41:46 -0700
committerTony Lindgren <tony@atomide.com>2012-09-20 15:03:55 -0700
commitac839b3cad7b9e481f250f99cf72b5a1872d3641 (patch)
treecd4dd88059673285107468bccff7ddc4bf96133d /arch/arm/mach-omap2/gpmc-smsc911x.h
parent606281525fb7c9ef0510f74239a132d078f20520 (diff)
downloadop-kernel-dev-ac839b3cad7b9e481f250f99cf72b5a1872d3641.zip
op-kernel-dev-ac839b3cad7b9e481f250f99cf72b5a1872d3641.tar.gz
ARM: OMAP2+: Make gpmc-smsc911x.h local
This can be local to mach-omap2. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-smsc911x.h')
-rw-r--r--arch/arm/mach-omap2/gpmc-smsc911x.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc-smsc911x.h b/arch/arm/mach-omap2/gpmc-smsc911x.h
new file mode 100644
index 0000000..ea6c9c8
--- /dev/null
+++ b/arch/arm/mach-omap2/gpmc-smsc911x.h
@@ -0,0 +1,35 @@
+/*
+ * arch/arm/plat-omap/include/plat/gpmc-smsc911x.h
+ *
+ * Copyright (C) 2009 Li-Pro.Net
+ * Stephan Linz <linz@li-pro.net>
+ *
+ * Modified from arch/arm/plat-omap/include/plat/gpmc-smc91x.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __ASM_ARCH_OMAP_GPMC_SMSC911X_H__
+
+struct omap_smsc911x_platform_data {
+ int id;
+ int cs;
+ int gpio_irq;
+ int gpio_reset;
+ u32 flags;
+};
+
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
+
+extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d);
+
+#else
+
+static inline void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d)
+{
+}
+
+#endif
+#endif
OpenPOWER on IntegriCloud