mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
ARM: atmel: spl: can not disable osc for sama5d4
The SAMA5D4 SoC on chip rc oscillator can not be disabled. Signed-off-by: Bo Shen <voice.shen@atmel.com>
This commit is contained in:
parent
4514b5f46a
commit
0246b7c3b7
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue