summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-04-03 08:50:01 +0000
committerTom Rini <trini@ti.com>2013-04-08 11:29:05 -0400
commit5aa014d613c561fb2e124acd60e4f6a34df17c21 (patch)
tree3c794a3adefb24ecbcecbe8259aa4850212565ef /arch
parentcecac32a06a71bc27fbcc8b5491400836952302d (diff)
downloadu-boot-imx-5aa014d613c561fb2e124acd60e4f6a34df17c21.zip
u-boot-imx-5aa014d613c561fb2e124acd60e4f6a34df17c21.tar.gz
u-boot-imx-5aa014d613c561fb2e124acd60e4f6a34df17c21.tar.bz2
am335x: Enable MMC1 clock
We must not assume ROM has enabled the clock for MMC1. Reported-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Tom Rini <trini@ti.com> Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv7/am33xx/clock_am33xx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/clock_am33xx.c b/arch/arm/cpu/armv7/am33xx/clock_am33xx.c
index afc0d92..a1efc75 100644
--- a/arch/arm/cpu/armv7/am33xx/clock_am33xx.c
+++ b/arch/arm/cpu/armv7/am33xx/clock_am33xx.c
@@ -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)