diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2017-08-21 10:20:49 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-11 23:19:35 +0300 |
commit | 91d3e90668009a9d0175f03fe0daf5285b78c6ba (patch) | |
tree | 1c3cdd91a80447a828f7d8ffb2369eae1df7cd33 /board | |
parent | bce2629887fdc1749c4b8b5bdb877756e960fbca (diff) | |
download | u-boot-91d3e90668009a9d0175f03fe0daf5285b78c6ba.tar.xz |
arm: omap5+: Add board specific ldo powering
It is not necessary all omap5+ based uses the same PMIC
to poweron mmc. So add support for enabling mmc based on board.
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/ti/dra7xx/evm.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index 93d3d0b54e..6767fd2179 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -710,6 +710,19 @@ int board_mmc_init(bd_t *bis) omap_mmc_init(1, 0, 0, -1, -1); return 0; } + +void board_mmc_poweron_ldo(uint voltage) +{ + if (board_is_dra71x_evm()) { + if (voltage == LDO_VOLT_3V0) + voltage = 0x19; + else if (voltage == LDO_VOLT_1V8) + voltage = 0xa; + lp873x_mmc1_poweron_ldo(voltage); + } else { + palmas_mmc1_poweron_ldo(voltage); + } +} #endif #ifdef CONFIG_USB_DWC3 |