Skip to contentSkip to conversation

twl6030: Set WR_S for VMMC

PATCH Applied Jan Weitzel 2 participants 2 messages May 28, 2013 – May 30, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 twl6030: Set WR_S for VMMC

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.

---
 drivers/mci/twl6030.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mci/twl6030.c +1 -0
index 4a875bd..ad1043d 100644
@@ -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,
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 5 lines · Jan Weitzel

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.

Applied, thanks

Sascha

Quoted 25 lines
---
 drivers/mci/twl6030.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mci/twl6030.c +1 -0
index 4a875bd..ad1043d 100644
@@ -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,
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox