pinctrl:modify bank0 reg_base
authorluowei <lw@rock-chips.com>
Thu, 20 Mar 2014 11:53:50 +0000 (19:53 +0800)
committerluowei <lw@rock-chips.com>
Thu, 20 Mar 2014 11:54:32 +0000 (19:54 +0800)
arch/arm/boot/dts/rk3288-pinctrl.dtsi
drivers/pinctrl/pinctrl-rockchip.c

index 2eb333ec2537823aaddd77537e555c92c84a7200..ae38711a65986711f975712a4c0a1dc089cfb732 100755 (executable)
@@ -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 = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&clk_gates17 4>;
index 71cdede15e5654d1b5666c948dbd7cbf0c03e79b..c086a1d325d3a2aa65e8633df74b4cd0689781e8 100755 (executable)
@@ -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);