mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
clk: k210: Fix PLLs not being enabled
After starting or setting the rate of a PLL, the enable bit must be set. This fixes a bug where the AI ram would not be accessible, because it requires PLL1 to be running. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
parent
8c12cb3fd8
commit
d0686a02b9
1 changed files with 2 additions and 0 deletions
|
@ -531,6 +531,7 @@ static int k210_pll_enable(struct clk *clk)
|
|||
k210_pll_waitfor_lock(pll);
|
||||
|
||||
reg &= ~K210_PLL_BYPASS;
|
||||
reg |= K210_PLL_EN;
|
||||
writel(reg, pll->reg);
|
||||
|
||||
return 0;
|
||||
|
@ -550,6 +551,7 @@ static int k210_pll_disable(struct clk *clk)
|
|||
writel(reg, pll->reg);
|
||||
|
||||
reg &= ~K210_PLL_PWRD;
|
||||
reg &= ~K210_PLL_EN;
|
||||
writel(reg, pll->reg);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue