summaryrefslogtreecommitdiff
path: root/linux/arch/arm/mach-iop32x/gpio-iop32x.h
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
commita1df417e74aa6dae7352dc8cbb0ad471af5b7c69 (patch)
treec34b2311e37ea31db153c90cb8f4570374d05e78 /linux/arch/arm/mach-iop32x/gpio-iop32x.h
initial Olimex linux tree from Daniel, originally Feb 3, 2016
Diffstat (limited to 'linux/arch/arm/mach-iop32x/gpio-iop32x.h')
-rw-r--r--linux/arch/arm/mach-iop32x/gpio-iop32x.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/arch/arm/mach-iop32x/gpio-iop32x.h b/linux/arch/arm/mach-iop32x/gpio-iop32x.h
new file mode 100644
index 00000000..3c7309c0
--- /dev/null
+++ b/linux/arch/arm/mach-iop32x/gpio-iop32x.h
@@ -0,0 +1,10 @@
+static struct resource iop32x_gpio_res[] = {
+ DEFINE_RES_MEM((IOP3XX_PERIPHERAL_PHYS_BASE + 0x07c4), 0x10),
+};
+
+static inline void register_iop32x_gpio(void)
+{
+ platform_device_register_simple("gpio-iop", 0,
+ iop32x_gpio_res,
+ ARRAY_SIZE(iop32x_gpio_res));
+}