[PATCH] twl6030: Set WR_S for VMMC
Jan Weitzel
j.weitzel at phytec.de
Tue May 28 07:51:43 EDT 2013
After Reset VMMC goes to default VSEL. This is not a clean power cycle for
some SD cards.
Set flag WR_S for VMMC to avoid going to default VSEL.
Signed-off-by: Jan Weitzel <j.weitzel at phytec.de>
---
drivers/mci/twl6030.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mci/twl6030.c b/drivers/mci/twl6030.c
index 4a875bd..ad1043d 100644
--- a/drivers/mci/twl6030.c
+++ b/drivers/mci/twl6030.c
@@ -21,6 +21,7 @@ static int twl6030_mci_write(u8 address, u8 data)
void twl6030_mci_power_init(void)
{
twl6030_mci_write(TWL6030_PMCS_VMMC_CFG_VOLTAGE,
+ TWL6030_VMMC_WR_S |
TWL6030_VMMC_VSEL_0 | TWL6030_VMMC_VSEL_2 |
TWL6030_VMMC_VSEL_4);
twl6030_mci_write(TWL6030_PMCS_VMMC_CFG_STATE,
--
1.7.0.4
More information about the barebox
mailing list