From c2e122487dc3b4d14a82ef9307ab44e055ff0bd4 Mon Sep 17 00:00:00 2001 From: David Wu Date: Tue, 6 Feb 2018 14:59:21 +0800 Subject: [PATCH] pinctrl: rockchip: Fix the uart2 & uart3 route bit of px30 Uart2 and uart3 both have routed bit, use their rx pin to switch m0 or m1. Change-Id: I4d5251f88484b1d98ab29071d34e4f14819520d6 Signed-off-by: David Wu --- drivers/pinctrl/pinctrl-rockchip.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index a76248afba1f..0073fa7e7c20 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -732,31 +732,31 @@ static struct rockchip_mux_route_data px30_mux_route_data[] = { }, { /* uart2-rxm0 */ .bank_num = 1, - .pin = 26, + .pin = 27, .func = 2, .route_offset = 0x184, - .route_val = BIT(16 + 9), + .route_val = BIT(16 + 10), }, { /* uart2-rxm1 */ .bank_num = 2, .pin = 14, .func = 2, .route_offset = 0x184, - .route_val = BIT(16 + 9) | BIT(9), + .route_val = BIT(16 + 10) | BIT(10), }, { /* uart3-rxm0 */ .bank_num = 0, .pin = 17, .func = 2, .route_offset = 0x184, - .route_val = BIT(16 + 10), + .route_val = BIT(16 + 9), }, { /* uart3-rxm1 */ .bank_num = 1, - .pin = 13, + .pin = 15, .func = 2, .route_offset = 0x184, - .route_val = BIT(16 + 10) | BIT(10), + .route_val = BIT(16 + 9) | BIT(9), }, };