]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
board: ti: dra71x-evm: Hook LDO1 of LP8733 to EN_PIN
authorKeerthy <j-keerthy@ti.com>
Thu, 12 Oct 2017 04:48:45 +0000 (10:18 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 17 Nov 2017 12:43:32 +0000 (07:43 -0500)
All regulators are hooked to EN_Pin at reset so that EN Pin controls
their state. Hook the LDO1 regulator to EN pin which at reset is not
hooked. This applies only to LP8733.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/dra7xx/evm.c

index 97aae016e14cd65cf9c50cbe6ee2bcde0168958f..6bcfa482315983e2afd18d01cd9d25eec8605e48 100644 (file)
@@ -672,6 +672,13 @@ int board_late_init(void)
 
        omap_die_id_serial();
        omap_set_fastboot_vars();
+
+       /*
+        * Hook the LDO1 regulator to EN pin. This applies only to LP8733
+        * Rest all regulators are hooked to EN Pin at reset.
+        */
+       if (board_is_dra71x_evm())
+               palmas_i2c_write_u8(LP873X_I2C_SLAVE_ADDR, 0x9, 0x7);
 #endif
        return 0;
 }