summaryrefslogtreecommitdiff
path: root/board/ti/beagle
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2022-02-25 14:18:32 +0300
committerTom Rini <trini@konsulko.com>2022-03-10 21:49:57 +0300
commit848cfe098f59c47a2542385513fb554430b874d6 (patch)
tree15acd752bacacbb81895580e7beb2138460db4d6 /board/ti/beagle
parentb2aac9c622acb304d7362a7a45d23b45d98b21f5 (diff)
downloadu-boot-848cfe098f59c47a2542385513fb554430b874d6.tar.xz
ARM: omap3_beagle: Power on MMC when setting up PMIC
The PMIC enables power to the MMC card by default, but depending on the state it was left when restarted, it's possible the MMC may be powered down. This patch patch explicitly tells the twl4030 to power the MMC. Based on commits [1][2]. [1] 64fd2d26140aa72b43428d079974f7c0e7f88353 [2] 27b653449178e80b333e7bc5a81eed3bd1bd6861 Signed-off-by: Romain Naour <romain.naour@gmail.com>
Diffstat (limited to 'board/ti/beagle')
-rw-r--r--board/ti/beagle/beagle.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index d5a122af2b..847d596646 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -447,6 +447,8 @@ int misc_init_r(void)
env_set(expansion_config.env_var, expansion_config.env_setting);
twl4030_power_init();
+ twl4030_power_mmc_init(0);
+
switch (get_board_revision()) {
case REVISION_XM_AB:
twl4030_led_init(TWL4030_LED_LEDEN_LEDBON);
@@ -499,10 +501,3 @@ void set_muxconf_regs(void)
{
MUX_BEAGLE();
}
-
-#if defined(CONFIG_MMC)
-void board_mmc_power_init(void)
-{
- twl4030_power_mmc_init(0);
-}
-#endif