diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-07-05 17:41:31 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-06 12:00:43 -0400 |
commit | eb7fffa39a3f114832df54a3e373d7580d8fe757 (patch) | |
tree | 47d4b5986e8d85433abc99e8bc02572cc970c357 /arch/arm/mach-realview/realview_eb.c | |
parent | bbeddc43e673fb6882cc55efdc3c3002c14f5d08 (diff) |
[ARM] realview: add PL061 gpiolib support
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/realview_eb.c')
-rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 8dfa44e08a94..abd13b448671 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/sysdev.h> | 24 | #include <linux/sysdev.h> |
25 | #include <linux/amba/bus.h> | 25 | #include <linux/amba/bus.h> |
26 | #include <linux/amba/pl061.h> | ||
26 | #include <linux/io.h> | 27 | #include <linux/io.h> |
27 | 28 | ||
28 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
@@ -113,6 +114,21 @@ static void __init realview_eb_map_io(void) | |||
113 | iotable_init(realview_eb11mp_io_desc, ARRAY_SIZE(realview_eb11mp_io_desc)); | 114 | iotable_init(realview_eb11mp_io_desc, ARRAY_SIZE(realview_eb11mp_io_desc)); |
114 | } | 115 | } |
115 | 116 | ||
117 | static struct pl061_platform_data gpio0_plat_data = { | ||
118 | .gpio_base = 0, | ||
119 | .irq_base = -1, | ||
120 | }; | ||
121 | |||
122 | static struct pl061_platform_data gpio1_plat_data = { | ||
123 | .gpio_base = 8, | ||
124 | .irq_base = -1, | ||
125 | }; | ||
126 | |||
127 | static struct pl061_platform_data gpio2_plat_data = { | ||
128 | .gpio_base = 16, | ||
129 | .irq_base = -1, | ||
130 | }; | ||
131 | |||
116 | /* | 132 | /* |
117 | * RealView EB AMBA devices | 133 | * RealView EB AMBA devices |
118 | */ | 134 | */ |
@@ -189,9 +205,9 @@ AMBA_DEVICE(clcd, "dev:20", EB_CLCD, &clcd_plat_data); | |||
189 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); | 205 | AMBA_DEVICE(dmac, "dev:30", DMAC, NULL); |
190 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); | 206 | AMBA_DEVICE(sctl, "dev:e0", SCTL, NULL); |
191 | AMBA_DEVICE(wdog, "dev:e1", EB_WATCHDOG, NULL); | 207 | AMBA_DEVICE(wdog, "dev:e1", EB_WATCHDOG, NULL); |
192 | AMBA_DEVICE(gpio0, "dev:e4", EB_GPIO0, NULL); | 208 | AMBA_DEVICE(gpio0, "dev:e4", EB_GPIO0, &gpio0_plat_data); |
193 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, NULL); | 209 | AMBA_DEVICE(gpio1, "dev:e5", GPIO1, &gpio1_plat_data); |
194 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, NULL); | 210 | AMBA_DEVICE(gpio2, "dev:e6", GPIO2, &gpio2_plat_data); |
195 | AMBA_DEVICE(rtc, "dev:e8", EB_RTC, NULL); | 211 | AMBA_DEVICE(rtc, "dev:e8", EB_RTC, NULL); |
196 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); | 212 | AMBA_DEVICE(sci0, "dev:f0", SCI, NULL); |
197 | AMBA_DEVICE(uart0, "dev:f1", EB_UART0, NULL); | 213 | AMBA_DEVICE(uart0, "dev:f1", EB_UART0, NULL); |