From: luowei Date: Thu, 20 Mar 2014 11:53:50 +0000 (+0800) Subject: pinctrl:modify bank0 reg_base X-Git-Tag: firefly_0821_release~5958 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=13ff4a42892dfcaa2bae90d837891b00b800448a;p=firefly-linux-kernel-4.4.55.git pinctrl:modify bank0 reg_base --- diff --git a/arch/arm/boot/dts/rk3288-pinctrl.dtsi b/arch/arm/boot/dts/rk3288-pinctrl.dtsi index 2eb333ec2537..ae38711a6598 100755 --- a/arch/arm/boot/dts/rk3288-pinctrl.dtsi +++ b/arch/arm/boot/dts/rk3288-pinctrl.dtsi @@ -17,9 +17,9 @@ gpio0: gpio0@ff750000 { compatible = "rockchip,rk3288-gpio-bank0"; reg = <0xff750000 0x100>, - <0xff730080 0x10>, - <0xff730060 0x0c>, - <0xff73006c 0x0c>; + <0xff730084 0x10>, + <0xff730064 0x0c>, + <0xff730070 0x0c>; reg-names = "base", "mux_bank0", "pull_bank0", "drv_bank0"; interrupts = ; clocks = <&clk_gates17 4>; diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 71cdede15e56..c086a1d325d3 100755 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -616,7 +616,7 @@ static int rockchip_set_rk32_mux(struct rockchip_pin_bank *bank, int pin, int mu case 0: //pmu reg = bank->reg_mux_bank0; - reg += RK3288_GRF_GPIO0_A_IOMUX; + //reg += RK3288_GRF_GPIO0_A_IOMUX; bits = 2; rk32_iomux_bit_op(bank, pin, mux, reg, bits); break; @@ -1055,7 +1055,7 @@ static void rk3288_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, *bit = pin_num % 8; *bit *= 2; } else { - *reg = info->reg_pull; + *reg = info->reg_pull - 0x10; *reg += bank->bank_num * 0x10; *reg += ((pin_num / 8) * 4); @@ -1079,7 +1079,7 @@ static void rk3288_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, *bit = pin_num % 8; *bit *= 2; } else { - *reg = info->reg_drv; + *reg = info->reg_drv - 0x10; *reg += bank->bank_num * 0x10; *reg += ((pin_num / 8) * 4);