From: Romain Naour <romain.naour@gmail.com>
To: u-boot@lists.denx.de
Cc: Romain Naour <romain.naour@gmail.com>
Subject: [PATCH 2/4] ARM: omap3_beagle: Power on MMC when setting up PMIC
Date: Fri, 25 Feb 2022 12:18:32 +0100 [thread overview]
Message-ID: <20220225111834.231005-2-romain.naour@gmail.com> (raw)
In-Reply-To: <20220225111834.231005-1-romain.naour@gmail.com>
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>
---
board/ti/beagle/beagle.c | 9 ++-------
1 file 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
--
2.35.1
next prev parent reply other threads:[~2022-02-25 12:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-25 11:18 [PATCH 1/4] ARM: omap3_beagle: Remove non-DM initialization Romain Naour
2022-02-25 11:18 ` Romain Naour [this message]
2022-03-14 13:07 ` [PATCH 2/4] ARM: omap3_beagle: Power on MMC when setting up PMIC Tom Rini
2022-02-25 11:18 ` [PATCH 3/4] ARM: omap3_beagle: Enable Pinctrl Romain Naour
2022-03-14 13:07 ` Tom Rini
2022-02-25 11:18 ` [PATCH 4/4] ARM: omap3_beagle: Enable DM_PMIC and DM_REGULATOR Romain Naour
2022-03-14 13:07 ` Tom Rini
2022-03-14 13:07 ` [PATCH 1/4] ARM: omap3_beagle: Remove non-DM initialization Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220225111834.231005-2-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox