imx: ventana: put LTC3676 regulators in continuous mode
authorTim Harvey <tharvey@gateworks.com>
Fri, 11 Jun 2021 19:46:24 +0000 (12:46 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 14:53:33 +0000 (16:53 +0200)
In the default pulse-skipping mode regulators that are very lightly
loaded can fail to regulate properly. Switching them to always use
continuous mode causes only around 10mW of overall system power
difference in a lightly loaded system that isn't already operating
them in continuous mode.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/common.c

index b5a0162..adbc679 100644 (file)
@@ -1688,6 +1688,12 @@ void setup_pmic(void)
                        /* set SW3 (VDD_ARM) */
                        pmic_reg_write(p, LTC3676_DVB3A, 0x1f);
                }
+
+               /* put all switchers in continuous mode */
+               pmic_reg_write(p, LTC3676_BUCK1, 0xc0);
+               pmic_reg_write(p, LTC3676_BUCK2, 0xc0);
+               pmic_reg_write(p, LTC3676_BUCK3, 0xc0);
+               pmic_reg_write(p, LTC3676_BUCK4, 0xc0);
        }
 }