]> Git Repo - u-boot.git/commitdiff
am335x: Enable MMC1 clock
authorTom Rini <[email protected]>
Wed, 3 Apr 2013 08:50:01 +0000 (08:50 +0000)
committerTom Rini <[email protected]>
Mon, 8 Apr 2013 15:29:05 +0000 (11:29 -0400)
We must not assume ROM has enabled the clock for MMC1.

Reported-by: Koen Kooi <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Acked-by: Peter Korsgaard <[email protected]>
arch/arm/cpu/armv7/am33xx/clock_am33xx.c

index afc0d9205937354b70fa64e1c7ebc83eea746c08..a1efc7520a7c149dc93b388ca84bf8fc23ac4ed7 100644 (file)
@@ -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)
This page took 0.035562 seconds and 4 git commands to generate.