]> git.sur5r.net Git - u-boot/commitdiff
board: ti: dra76-evm: Add support for powering on mmc ldo
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 21 Aug 2017 07:20:57 +0000 (12:50 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 11 Sep 2017 20:19:43 +0000 (16:19 -0400)
ldo4 is used to poweron mmc on dra76-evm. Enable it.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/dra7xx/evm.c
include/palmas.h

index ad63abd759d9aa3ae8f2bfa3a6e77562fe931f25..87b7403070ae20280a01720ea45152d6b3545391 100644 (file)
@@ -837,6 +837,8 @@ void board_mmc_poweron_ldo(uint voltage)
                else if (voltage == LDO_VOLT_1V8)
                        voltage = 0xa;
                lp873x_mmc1_poweron_ldo(voltage);
+       } else if (board_is_dra76x_evm()) {
+               palmas_mmc1_poweron_ldo(LDO4_VOLTAGE, LDO4_CTRL, voltage);
        } else {
                palmas_mmc1_poweron_ldo(LDO1_VOLTAGE, LDO1_CTRL, voltage);
        }
index 404c2b3ca7bcc79efa8190dfb4ae353048849b4e..d366c98d22e2e48f5ab857b54051f4945192ef6b 100644 (file)
 #define LDO2_CTRL              0x52
 #define LDO2_VOLTAGE           0x53
 
+/* LDO2 control/voltage */
+#define LDO4_CTRL              0x5e
+#define LDO4_VOLTAGE           0x5f
+
 /* LDO9 control/voltage */
 #define LDO9_CTRL              0x60
 #define LDO9_VOLTAGE           0x61