projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4514b5f
)
ARM: atmel: spl: can not disable osc for sama5d4
author
Bo Shen
<voice.shen@atmel.com>
Mon, 15 Dec 2014 05:24:32 +0000
(13:24 +0800)
committer
Andreas Bießmann
<andreas.devel@googlemail.com>
Sat, 7 Feb 2015 22:42:47 +0000
(23:42 +0100)
The SAMA5D4 SoC on chip rc oscillator can not be disabled.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
arch/arm/cpu/at91-common/spl_atmel.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/at91-common/spl_atmel.c
b/arch/arm/cpu/at91-common/spl_atmel.c
index fdea46665f80f76f4e4da7ede1c7e0bb46dcacdb..9cc1111234a16f723519281bbd3fd4f7aae7a531 100644
(file)
--- a/
arch/arm/cpu/at91-common/spl_atmel.c
+++ b/
arch/arm/cpu/at91-common/spl_atmel.c
@@
-51,11
+51,13
@@
static void switch_to_main_crystal_osc(void)
while (!(readl(&pmc->mcfr) & AT91_PMC_MAINRDY))
;
+#ifndef CONFIG_SAMA5D4
tmp = readl(&pmc->mor);
tmp &= ~AT91_PMC_MOR_MOSCRCEN;
tmp &= ~AT91_PMC_MOR_KEY(0xff);
tmp |= AT91_PMC_MOR_KEY(0x37);
writel(tmp, &pmc->mor);
+#endif
}
__weak void matrix_init(void)