]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
verdin-imx8mm: spl: enable pca9450 i2c level translator
authorMax Krummenacher <max.krummenacher@toradex.com>
Wed, 28 Oct 2020 09:58:14 +0000 (11:58 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 6 Dec 2020 14:31:37 +0000 (15:31 +0100)
Enable PCA9450 i2c level translator, as this is used for the
on module ADC.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
board/toradex/verdin-imx8mm/spl.c

index 9562cdeb350a3ca7f40543be5e1e13a3ad4dd509..72e2e09e256f8c617bd891ebb273cda6b97ac35f 100644 (file)
@@ -124,6 +124,8 @@ int power_init_board(void)
                /* set WDOG_B_CFG to cold reset */
                pmic_reg_write(dev, PCA9450_RESET_CTRL, 0xA1);
 
+               pmic_reg_write(dev, PCA9450_CONFIG2, 0x1);
+
                return 0;
        }