Skip to content
Snippets Groups Projects
Commit 0246b7c3 authored by Bo Shen's avatar Bo Shen Committed by Andreas Bießmann
Browse files

ARM: atmel: spl: can not disable osc for sama5d4


The SAMA5D4 SoC on chip rc oscillator can not be disabled.

Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
parent 4514b5f4
No related branches found
No related tags found
No related merge requests found
...@@ -51,11 +51,13 @@ static void switch_to_main_crystal_osc(void) ...@@ -51,11 +51,13 @@ static void switch_to_main_crystal_osc(void)
while (!(readl(&pmc->mcfr) & AT91_PMC_MAINRDY)) while (!(readl(&pmc->mcfr) & AT91_PMC_MAINRDY))
; ;
#ifndef CONFIG_SAMA5D4
tmp = readl(&pmc->mor); tmp = readl(&pmc->mor);
tmp &= ~AT91_PMC_MOR_MOSCRCEN; tmp &= ~AT91_PMC_MOR_MOSCRCEN;
tmp &= ~AT91_PMC_MOR_KEY(0xff); tmp &= ~AT91_PMC_MOR_KEY(0xff);
tmp |= AT91_PMC_MOR_KEY(0x37); tmp |= AT91_PMC_MOR_KEY(0x37);
writel(tmp, &pmc->mor); writel(tmp, &pmc->mor);
#endif
} }
__weak void matrix_init(void) __weak void matrix_init(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment