mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
ARM: atmel: clock: make it possible to configure HMX32
Signed-off-by: Bo Shen <voice.shen@atmel.com>
This commit is contained in:
parent
7f641d53bb
commit
05084443f0
1 changed files with 8 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue