mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-22 15:42:04 +00:00
arm: mxs: fix comments in arch_cpu_init to match the code
The comment says to clear the bypass bit, but in fact it sets it, thus selecting ref_xtal. And the next line of code does not set the divider to 12, but to (the reset value of) 1. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
This commit is contained in:
parent
bb09bd5f69
commit
fb94625229
1 changed files with 2 additions and 2 deletions
|
@ -98,11 +98,11 @@ int arch_cpu_init(void)
|
||||||
/*
|
/*
|
||||||
* Enable NAND clock
|
* Enable NAND clock
|
||||||
*/
|
*/
|
||||||
/* Clear bypass bit */
|
/* Set bypass bit */
|
||||||
writel(CLKCTRL_CLKSEQ_BYPASS_GPMI,
|
writel(CLKCTRL_CLKSEQ_BYPASS_GPMI,
|
||||||
&clkctrl_regs->hw_clkctrl_clkseq_set);
|
&clkctrl_regs->hw_clkctrl_clkseq_set);
|
||||||
|
|
||||||
/* Set GPMI clock to ref_gpmi / 12 */
|
/* Set GPMI clock to ref_xtal / 1 */
|
||||||
clrsetbits_le32(&clkctrl_regs->hw_clkctrl_gpmi,
|
clrsetbits_le32(&clkctrl_regs->hw_clkctrl_gpmi,
|
||||||
CLKCTRL_GPMI_CLKGATE | CLKCTRL_GPMI_DIV_MASK, 1);
|
CLKCTRL_GPMI_CLKGATE | CLKCTRL_GPMI_DIV_MASK, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue