[PATCH] iot_dk: Add support of 136 MHz clock

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] iot_dk: Add support of 136 MHz clock

Alexey Brodkin
Signed-off-by: Alexey Brodkin <[hidden email]>
---
 board/synopsys/iot_devkit/iot_devkit.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c
index fb39e6d..04e003c 100644
--- a/board/synopsys/iot_devkit/iot_devkit.c
+++ b/board/synopsys/iot_devkit/iot_devkit.c
@@ -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 */
--
2.7.4


_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot