From 3574d2ba4a53a4bafa62b9fba67045e65b50368e Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Sep 2011 17:27:11 +0800 Subject: [PATCH] rk29_phone: disable pull down resistor of uart3 for gps --- drivers/misc/gps/rk29_gps.c | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 drivers/misc/gps/rk29_gps.c diff --git a/drivers/misc/gps/rk29_gps.c b/drivers/misc/gps/rk29_gps.c old mode 100644 new mode 100755 index 2dc8f76d65cf..0e4aa47e22ec --- a/drivers/misc/gps/rk29_gps.c +++ b/drivers/misc/gps/rk29_gps.c @@ -34,8 +34,14 @@ static int rk29_gps_uart_to_gpio(int uart_id) gpio_request(RK29_PIN2_PB3, NULL); gpio_request(RK29_PIN2_PB2, NULL); + gpio_pull_updown(RK29_PIN2_PB3, PullDisable); + gpio_pull_updown(RK29_PIN2_PB2, PullDisable); + gpio_direction_output(RK29_PIN2_PB3, GPIO_LOW); gpio_direction_output(RK29_PIN2_PB2, GPIO_LOW); + + gpio_free(RK29_PIN2_PB3); + gpio_free(RK29_PIN2_PB2); } else if(uart_id == 2) { rk29_mux_api_set(GPIO2B1_UART2SOUT_NAME, GPIO2L_GPIO2B1); -- 2.34.1