rk29_phone: disable pull down resistor of uart3 for gps
authorroot <root@lw.(none)>
Wed, 14 Sep 2011 09:27:11 +0000 (17:27 +0800)
committerroot <root@lw.(none)>
Wed, 14 Sep 2011 09:29:52 +0000 (17:29 +0800)
drivers/misc/gps/rk29_gps.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 2dc8f76..0e4aa47
@@ -34,8 +34,14 @@ static int rk29_gps_uart_to_gpio(int uart_id)
                gpio_request(RK29_PIN2_PB3, NULL);\r
                gpio_request(RK29_PIN2_PB2, NULL);\r
 \r
+               gpio_pull_updown(RK29_PIN2_PB3, PullDisable);\r
+               gpio_pull_updown(RK29_PIN2_PB2, PullDisable);\r
+\r
                gpio_direction_output(RK29_PIN2_PB3, GPIO_LOW);\r
                gpio_direction_output(RK29_PIN2_PB2, GPIO_LOW);\r
+\r
+               gpio_free(RK29_PIN2_PB3);\r
+               gpio_free(RK29_PIN2_PB2);\r
        }\r
        else if(uart_id == 2) {\r
                rk29_mux_api_set(GPIO2B1_UART2SOUT_NAME, GPIO2L_GPIO2B1);                       \r