pinctrl: renesas: Add TDSEL fixup for H2/E2 ES1.0 SoCs
[u-boot.git] / drivers / pinctrl / renesas / pfc-r8a7790.c
index ad492b5366b261c568999d831fcd40808a34f7f6..ef23ca278ab3ccd9bf1ac2d047bc0873e5506032 100644 (file)
@@ -5694,7 +5694,18 @@ static int r8a7790_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *poc
        return 31 - (pin & 0x1f);
 }
 
+static int r8a7790_pinmux_soc_init(struct sh_pfc *pfc)
+{
+       /* Initialize TDSEL on old revisions */
+       if ((rmobile_get_cpu_rev_integer() == 1) &&
+           (rmobile_get_cpu_rev_fraction() == 0))
+               sh_pfc_write(pfc, 0xe6060088, 0x00155554);
+
+       return 0;
+}
+
 static const struct sh_pfc_soc_operations r8a7790_pinmux_ops = {
+       .init = r8a7790_pinmux_soc_init,
        .pin_to_pocctrl = r8a7790_pin_to_pocctrl,
 };
 
This page took 0.027728 seconds and 4 git commands to generate.