Skip to contentSkip to conversation

am335x: Enable MMC1 clock

PATCH In review Tom Rini 2 participants 3 messages Apr 3, 2013 – Apr 8, 2013 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 am335x: Enable MMC1 clock

We must not assume ROM has enabled the clock for MMC1.

---
 arch/arm/cpu/armv7/am33xx/clock_am33xx.c |    5 +++++
 1 file changed, 5 insertions(+)
arch/arm/cpu/armv7/am33xx/clock_am33xx.c +5 -0
index afc0d92..a1efc75 100644
@@ -195,6 +195,11 @@ static void enable_per_clocks(void)
 	while (readl(&cmper->mmc0clkctrl) != PRCM_MOD_EN)
 		;
 
+	/* MMC1 */
+	writel(PRCM_MOD_EN, &cmper->mmc1clkctrl);
+	while (readl(&cmper->mmc1clkctrl) != PRCM_MOD_EN)
+		;
+
 	/* i2c0 */
 	writel(PRCM_MOD_EN, &cmwkup->wkup_i2c0ctrl);
 	while (readl(&cmwkup->wkup_i2c0ctrl) != PRCM_MOD_EN)
Signature · 1 line
1.7.9.5
author
#2 lore raw
In reply to Tom Rini
Quoted 5 lines · Tom Rini

We must not assume ROM has enabled the clock for MMC1.

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130408/fef2d274/attachment.pgp>