* [PATCH] twl6030: Set WR_S for VMMC
@ 2013-05-28 11:51 Jan Weitzel
2013-05-30 9:22 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Jan Weitzel @ 2013-05-28 11:51 UTC (permalink / raw)
To: barebox
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@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] twl6030: Set WR_S for VMMC
2013-05-28 11:51 [PATCH] twl6030: Set WR_S for VMMC Jan Weitzel
@ 2013-05-30 9:22 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-05-30 9:22 UTC (permalink / raw)
To: Jan Weitzel; +Cc: barebox
On Tue, May 28, 2013 at 01:51:43PM +0200, Jan Weitzel wrote:
> 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@phytec.de>
Applied, thanks
Sascha
> ---
> 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
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-30 9:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 11:51 [PATCH] twl6030: Set WR_S for VMMC Jan Weitzel
2013-05-30 9:22 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox