]> git.sur5r.net Git - u-boot/commitdiff
mx7dsabresd: Set VLD04 output to 2.8V in PMIC initialization.
authorGautam Bhat <mindentropy@gmail.com>
Sun, 2 Jul 2017 19:20:32 +0000 (00:50 +0530)
committerStefano Babic <sbabic@denx.de>
Wed, 12 Jul 2017 07:44:22 +0000 (09:44 +0200)
This change sets the VLDO4 settings output to 2.8V in PMIC
initialization so that the MIPI DSI/CSI input voltage is 2.8V
as per the schematics. The original code provides an output of
3.3V which violates the voltage mentioned in the schematics.

Signed-off-by: Gautam Bhat <mindentropy@gmail.com>
Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
board/freescale/mx7dsabresd/mx7dsabresd.c

index ecea5a529aa8f560ac70f5a53f54a92ee55af8ad..7d22501d269b459e2827100a430d12dad7da399c 100644 (file)
@@ -354,6 +354,12 @@ int power_init_board(void)
 
        pmic_clrsetbits(dev, PFUZE3000_LDOGCTL, 0, 1);
 
+       /*
+        * Set the voltage of VLDO4 output to 2.8V which feeds
+        * the MIPI DSI and MIPI CSI inputs.
+        */
+       pmic_clrsetbits(dev, PFUZE3000_VLD4CTL, 0xF, 0xA);
+
        return 0;
 }
 #endif