projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f641d5
)
ARM: atmel: clock: make it possible to configure HMX32
author
Bo Shen
<voice.shen@atmel.com>
Mon, 15 Dec 2014 05:24:27 +0000
(13:24 +0800)
committer
Andreas Bießmann
<andreas.devel@googlemail.com>
Sat, 7 Feb 2015 22:42:40 +0000
(23:42 +0100)
Signed-off-by: Bo Shen <voice.shen@atmel.com>
arch/arm/cpu/armv7/at91/clock.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/at91/clock.c
b/arch/arm/cpu/armv7/at91/clock.c
index 2cdddb25048964364d1155dc6a76e762890be707..0bf453eff57c93145fce07967319946f549977ad 100644
(file)
--- a/
arch/arm/cpu/armv7/at91/clock.c
+++ b/
arch/arm/cpu/armv7/at91/clock.c
@@
-130,10
+130,18
@@
void at91_mck_init(u32 mckr)
AT91_PMC_MCKR_PRES_MASK |
AT91_PMC_MCKR_MDIV_MASK |
AT91_PMC_MCKR_PLLADIV_2);
+#ifdef CPU_HAS_H32MXDIV
+ tmp &= ~AT91_PMC_MCKR_H32MXDIV;
+#endif
+
tmp |= mckr & (AT91_PMC_MCKR_CSS_MASK |
AT91_PMC_MCKR_PRES_MASK |
AT91_PMC_MCKR_MDIV_MASK |
AT91_PMC_MCKR_PLLADIV_2);
+#ifdef CPU_HAS_H32MXDIV
+ tmp |= mckr & AT91_PMC_MCKR_H32MXDIV;
+#endif
+
writel(tmp, &pmc->mckr);
while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY))