]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
twl4030: VMMC2 3.2V enable on MMC init
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 28 Oct 2014 17:14:23 +0000 (18:14 +0100)
committerAnatolij Gustschin <agust@denx.de>
Thu, 30 Oct 2014 23:29:39 +0000 (00:29 +0100)
This enables the VMMC2 LDO, which powers the MMC2 device.
When the device starts from MMC2, this has already been enabled by the BootROM,
but when starting from peripheral boot (USB, UART), it is not the case.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
drivers/power/twl4030.c
include/twl4030.h

index 3e50310464a3fe658b31920e49e4aa0b00c955a1..e578ae634293e8843edae5954aaf4cb6dd78bfaa 100644 (file)
@@ -98,4 +98,10 @@ void twl4030_power_mmc_init(void)
                                TWL4030_PM_RECEIVER_VMMC1_VSEL_32,
                                TWL4030_PM_RECEIVER_VMMC1_DEV_GRP,
                                TWL4030_PM_RECEIVER_DEV_GRP_P1);
+
+       /* Set VMMC2 to 3.15 Volts */
+       twl4030_pmrecv_vsel_cfg(TWL4030_PM_RECEIVER_VMMC2_DEDICATED,
+                               TWL4030_PM_RECEIVER_VMMC2_VSEL_32,
+                               TWL4030_PM_RECEIVER_VMMC2_DEV_GRP,
+                               TWL4030_PM_RECEIVER_DEV_GRP_P1);
 }
index 093c61d6db0c969222b782ed074d0fb00606b74d..18795a601b58b00e5e0abc01d075ea9a23cf1d73 100644 (file)
 #define TWL4030_PM_RECEIVER_VDAC_VSEL_18               0x03
 #define TWL4030_PM_RECEIVER_VMMC1_VSEL_30              0x02
 #define TWL4030_PM_RECEIVER_VMMC1_VSEL_32              0x03
+#define TWL4030_PM_RECEIVER_VMMC2_VSEL_30              0x0B
+#define TWL4030_PM_RECEIVER_VMMC2_VSEL_32              0x0C
 #define TWL4030_PM_RECEIVER_VSIM_VSEL_18               0x03
 
 /* Device Selection in PM Receiver Module */