diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2011-10-17 08:37:52 -0400 |
---|---|---|
committer | Haojian Zhuang <hzhuang1@hexinfolabs.org> | 2011-11-15 06:08:27 -0500 |
commit | 157d2644cb0c1e71a18baaffca56d2b1d0ebf10f (patch) | |
tree | e33d224362ce8ac0706725f02ecd8b89c3645934 /arch/arm/mach-pxa/devices.c | |
parent | 9bf448c66d4b4cb03813b39195d408701ecf1fab (diff) |
ARM: pxa: change gpio to platform device
Remove most gpio macros and change gpio driver to platform driver.
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 2e0425404de5..5bc13121eac5 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -1051,6 +1051,36 @@ struct platform_device pxa3xx_device_ssp4 = { | |||
1051 | }; | 1051 | }; |
1052 | #endif /* CONFIG_PXA3xx || CONFIG_PXA95x */ | 1052 | #endif /* CONFIG_PXA3xx || CONFIG_PXA95x */ |
1053 | 1053 | ||
1054 | struct resource pxa_resource_gpio[] = { | ||
1055 | { | ||
1056 | .start = 0x40e00000, | ||
1057 | .end = 0x40e0ffff, | ||
1058 | .flags = IORESOURCE_MEM, | ||
1059 | }, { | ||
1060 | .start = IRQ_GPIO0, | ||
1061 | .end = IRQ_GPIO0, | ||
1062 | .name = "gpio0", | ||
1063 | .flags = IORESOURCE_IRQ, | ||
1064 | }, { | ||
1065 | .start = IRQ_GPIO1, | ||
1066 | .end = IRQ_GPIO1, | ||
1067 | .name = "gpio1", | ||
1068 | .flags = IORESOURCE_IRQ, | ||
1069 | }, { | ||
1070 | .start = IRQ_GPIO_2_x, | ||
1071 | .end = IRQ_GPIO_2_x, | ||
1072 | .name = "gpio_mux", | ||
1073 | .flags = IORESOURCE_IRQ, | ||
1074 | }, | ||
1075 | }; | ||
1076 | |||
1077 | struct platform_device pxa_device_gpio = { | ||
1078 | .name = "pxa-gpio", | ||
1079 | .id = -1, | ||
1080 | .num_resources = ARRAY_SIZE(pxa_resource_gpio), | ||
1081 | .resource = pxa_resource_gpio, | ||
1082 | }; | ||
1083 | |||
1054 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. | 1084 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. |
1055 | * See comment in arch/arm/mach-pxa/ssp.c::ssp_probe() */ | 1085 | * See comment in arch/arm/mach-pxa/ssp.c::ssp_probe() */ |
1056 | void __init pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_master *info) | 1086 | void __init pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_master *info) |