aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGregory Bean <gbean@codeaurora.org>2010-08-28 13:05:46 -0400
committerDaniel Walker <dwalker@codeaurora.org>2010-10-06 12:01:16 -0400
commitdd22b8f703d7a9aa5e40a7741b7e84fb0bb025d6 (patch)
tree26bb0c8a420ad7ea32e6c62f0fab560bccb21901 /arch
parent70816e2ca526cfe21ce884ecae057a9c1725ad27 (diff)
msm: convert 8x50 to gpiomux.
Change the gpio-init code from deprecated gpio_tlmm_config to the new gpiomux api. Signed-off-by: Gregory Bean <gbean@codeaurora.org> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-msm/board-qsd8x50.c12
-rw-r--r--arch/arm/mach-msm/gpiomux-8x50.c11
2 files changed, 10 insertions, 13 deletions
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c
index e3cc80792d6c..fb0fe6771e56 100644
--- a/arch/arm/mach-msm/board-qsd8x50.c
+++ b/arch/arm/mach-msm/board-qsd8x50.c
@@ -35,21 +35,10 @@
35 35
36extern struct sys_timer msm_timer; 36extern struct sys_timer msm_timer;
37 37
38static struct msm_gpio uart3_config_data[] = {
39 { GPIO_CFG(86, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_Rx"},
40 { GPIO_CFG(87, 1, GPIO_OUTPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_Tx"},
41};
42
43static struct platform_device *devices[] __initdata = { 38static struct platform_device *devices[] __initdata = {
44 &msm_device_uart3, 39 &msm_device_uart3,
45}; 40};
46 41
47static void msm8x50_init_uart3(void)
48{
49 msm_gpios_request_enable(uart3_config_data,
50 ARRAY_SIZE(uart3_config_data));
51}
52
53static void __init qsd8x50_map_io(void) 42static void __init qsd8x50_map_io(void)
54{ 43{
55 msm_map_qsd8x50_io(); 44 msm_map_qsd8x50_io();
@@ -64,7 +53,6 @@ static void __init qsd8x50_init_irq(void)
64 53
65static void __init qsd8x50_init(void) 54static void __init qsd8x50_init(void)
66{ 55{
67 msm8x50_init_uart3();
68 platform_add_devices(devices, ARRAY_SIZE(devices)); 56 platform_add_devices(devices, ARRAY_SIZE(devices));
69} 57}
70 58
diff --git a/arch/arm/mach-msm/gpiomux-8x50.c b/arch/arm/mach-msm/gpiomux-8x50.c
index 7b380b31bd0e..4406e0f4ae95 100644
--- a/arch/arm/mach-msm/gpiomux-8x50.c
+++ b/arch/arm/mach-msm/gpiomux-8x50.c
@@ -16,4 +16,13 @@
16 */ 16 */
17#include "gpiomux.h" 17#include "gpiomux.h"
18 18
19struct msm_gpiomux_config msm_gpiomux_configs[GPIOMUX_NGPIOS] = {}; 19struct msm_gpiomux_config msm_gpiomux_configs[GPIOMUX_NGPIOS] = {
20 [86] = { /* UART3 RX */
21 .suspended = GPIOMUX_DRV_2MA | GPIOMUX_PULL_DOWN |
22 GPIOMUX_FUNC_1 | GPIOMUX_VALID,
23 },
24 [87] = { /* UART3 TX */
25 .suspended = GPIOMUX_DRV_2MA | GPIOMUX_PULL_DOWN |
26 GPIOMUX_FUNC_1 | GPIOMUX_VALID,
27 },
28};