summaryrefslogtreecommitdiff
path: root/arch/arm/mach-iop32x/gpio-iop32x.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-09-23 14:47:14 +0400
committerLinus Walleij <linus.walleij@linaro.org>2013-09-23 14:47:14 +0400
commit7af2755d7883105eaf1cc17a4d289ce85c2a954e (patch)
treea6e06976d4068f9dbcad413bbe54a3ae90c39290 /arch/arm/mach-iop32x/gpio-iop32x.h
parent1dc94272117e35c1618516ffe5b129a7663c1d03 (diff)
parente34ca9de0b3575fc7e94b1f520169fc7024c6dd2 (diff)
downloadlinux-7af2755d7883105eaf1cc17a4d289ce85c2a954e.tar.xz
Merge branch 'iop-cleanup' into devel
Diffstat (limited to 'arch/arm/mach-iop32x/gpio-iop32x.h')
-rw-r--r--arch/arm/mach-iop32x/gpio-iop32x.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-iop32x/gpio-iop32x.h b/arch/arm/mach-iop32x/gpio-iop32x.h
new file mode 100644
index 000000000000..3c7309c02029
--- /dev/null
+++ b/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));
+}