Commit cd43b516 authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini

board: ti: dra76-evm: Add support for powering on mmc ldo

ldo4 is used to poweron mmc on dra76-evm. Enable it.
Reviewed-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 9120ef07
......@@ -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);
}
......
......@@ -38,6 +38,10 @@
#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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment