From: root Date: Wed, 14 Sep 2011 09:27:11 +0000 (+0800) Subject: rk29_phone: disable pull down resistor of uart3 for gps X-Git-Tag: firefly_0821_release~9767^2~26^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3574d2ba4a53a4bafa62b9fba67045e65b50368e;p=firefly-linux-kernel-4.4.55.git rk29_phone: disable pull down resistor of uart3 for gps --- 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);