aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-11 04:52:33 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-17 04:01:38 -0500
commitd485c7e71675abdd6133128e596b41284c2ee7b5 (patch)
treeafa70c3ace0be126f27db3ef0a08d51d07a8fbb8 /arch/arm/mach-mx25
parent5f3d1092a949b33d01c95b7f5e5a83672629f131 (diff)
ARM: mx25: move registration of gpios to plat-mxc/gpio.c
To use common macros to define the gpio ports for imx{1,21,25,27} the existing ones had to made more general and a few more base address defines were necessary. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25')
-rw-r--r--arch/arm/mach-mx25/devices.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
index 13a3c280a83..1798be90a38 100644
--- a/arch/arm/mach-mx25/devices.c
+++ b/arch/arm/mach-mx25/devices.c
@@ -41,35 +41,6 @@ struct platform_device mxc_keypad_device = {
41 .resource = mxc_keypad_resources, 41 .resource = mxc_keypad_resources,
42}; 42};
43 43
44static struct mxc_gpio_port imx_gpio_ports[] = {
45 {
46 .chip.label = "gpio-0",
47 .base = MX25_IO_ADDRESS(MX25_GPIO1_BASE_ADDR),
48 .irq = 52,
49 .virtual_irq_start = MXC_GPIO_IRQ_START,
50 }, {
51 .chip.label = "gpio-1",
52 .base = MX25_IO_ADDRESS(MX25_GPIO2_BASE_ADDR),
53 .irq = 51,
54 .virtual_irq_start = MXC_GPIO_IRQ_START + 32,
55 }, {
56 .chip.label = "gpio-2",
57 .base = MX25_IO_ADDRESS(MX25_GPIO3_BASE_ADDR),
58 .irq = 16,
59 .virtual_irq_start = MXC_GPIO_IRQ_START + 64,
60 }, {
61 .chip.label = "gpio-3",
62 .base = MX25_IO_ADDRESS(MX25_GPIO4_BASE_ADDR),
63 .irq = 23,
64 .virtual_irq_start = MXC_GPIO_IRQ_START + 96,
65 }
66};
67
68int __init imx25_register_gpios(void)
69{
70 return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports));
71}
72
73static struct resource mx25_rtc_resources[] = { 44static struct resource mx25_rtc_resources[] = {
74 { 45 {
75 .start = MX25_DRYICE_BASE_ADDR, 46 .start = MX25_DRYICE_BASE_ADDR,