mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 21:24:21 +08:00
iot_dk: Add support of 136 MHz clock
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
This commit is contained in:
parent
7d388add55
commit
031154fe8f
@ -68,6 +68,14 @@ static int set_cpu_freq(unsigned int clk)
|
||||
writel((readl(PLLCON) & PLL_MASK_2) | 0x200191, PLLCON);
|
||||
break;
|
||||
|
||||
case 136:
|
||||
writel(readl(PLLCON) & PLL_MASK_0, PLLCON);
|
||||
/* pll_off=1, M=17, N=1, OD=1, PLL_OUT_CLK=136M */
|
||||
writel((readl(PLLCON) & PLL_MASK_1) | 0x100111, PLLCON);
|
||||
/* pll_off=0, M=17, N=1, OD=1, PLL_OUT_CLK=136M */
|
||||
writel((readl(PLLCON) & PLL_MASK_2) | 0x100111, PLLCON);
|
||||
break;
|
||||
|
||||
case 144:
|
||||
writel(readl(PLLCON) & PLL_MASK_0, PLLCON);
|
||||
/* pll_off=1, M=18, N=1, OD=1, PLL_OUT_CLK=144M */
|
||||
|
Loading…
Reference in New Issue
Block a user