diff options
Diffstat (limited to 'arch/arm/mach-msm/board-msm7x30.c')
-rw-r--r-- | arch/arm/mach-msm/board-msm7x30.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/arch/arm/mach-msm/board-msm7x30.c b/arch/arm/mach-msm/board-msm7x30.c index e32981928c77..76d5a22a6984 100644 --- a/arch/arm/mach-msm/board-msm7x30.c +++ b/arch/arm/mach-msm/board-msm7x30.c | |||
@@ -39,27 +39,11 @@ | |||
39 | 39 | ||
40 | extern struct sys_timer msm_timer; | 40 | extern struct sys_timer msm_timer; |
41 | 41 | ||
42 | #ifdef CONFIG_SERIAL_MSM_CONSOLE | ||
43 | static struct msm_gpio uart2_config_data[] = { | ||
44 | { GPIO_CFG(49, 2, GPIO_OUTPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_RFR"}, | ||
45 | { GPIO_CFG(50, 2, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_CTS"}, | ||
46 | { GPIO_CFG(51, 2, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_Rx"}, | ||
47 | { GPIO_CFG(52, 2, GPIO_OUTPUT, GPIO_PULL_DOWN, GPIO_2MA), "UART2_Tx"}, | ||
48 | }; | ||
49 | |||
50 | static void msm7x30_init_uart2(void) | ||
51 | { | ||
52 | msm_gpios_request_enable(uart2_config_data, | ||
53 | ARRAY_SIZE(uart2_config_data)); | ||
54 | |||
55 | } | ||
56 | #endif | ||
57 | |||
58 | static struct platform_device *devices[] __initdata = { | 42 | static struct platform_device *devices[] __initdata = { |
59 | #if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER) | 43 | #if defined(CONFIG_SERIAL_MSM) || defined(CONFIG_MSM_SERIAL_DEBUGGER) |
60 | &msm_device_uart2, | 44 | &msm_device_uart2, |
61 | #endif | 45 | #endif |
62 | 46 | &msm_device_smd, | |
63 | }; | 47 | }; |
64 | 48 | ||
65 | static void __init msm7x30_init_irq(void) | 49 | static void __init msm7x30_init_irq(void) |
@@ -70,10 +54,6 @@ static void __init msm7x30_init_irq(void) | |||
70 | static void __init msm7x30_init(void) | 54 | static void __init msm7x30_init(void) |
71 | { | 55 | { |
72 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 56 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
73 | #ifdef CONFIG_SERIAL_MSM_CONSOLE | ||
74 | msm7x30_init_uart2(); | ||
75 | #endif | ||
76 | |||
77 | } | 57 | } |
78 | 58 | ||
79 | static void __init msm7x30_map_io(void) | 59 | static void __init msm7x30_map_io(void) |