pinctrl:starfive:Modify the mask of gpio_din_reg to make spi4 work
authorxingyu.wu <xingyu.wu@starfivetech.com>
Thu, 19 May 2022 13:28:21 +0000 (21:28 +0800)
committerxingyu.wu <xingyu.wu@starfivetech.com>
Thu, 19 May 2022 13:28:32 +0000 (21:28 +0800)
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c8b9f23..deeaea2
@@ -1004,7 +1004,7 @@ static int starfive_jh7110_sys_pmx_set_one_pin_mux(struct starfive_pinctrl *pctl
                n = pin_config->gpio_din_reg[i] >> 2;
                shift = (pin_config->gpio_din_reg[i] & 3) << 3;
                pinctrl_write_reg(pctl->padctl_base + info->din_reg_base + n * 4,
-                                       0x3F<<shift, (gpio+2)<<shift);
+                                       0x7F<<shift, (gpio+2)<<shift);
        }
 
        if (pin_reg->syscon_reg != -1) {