aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>2017-09-04 05:48:43 -0400
committerVineet Gupta <vgupta@synopsys.com>2017-10-03 23:36:49 -0400
commitef833eab1ddec06982ea620086b03d67ef4ddf9b (patch)
tree6d96b27c0b4e90d107c7ecf5a0853364d01a9402
parent9583833e9e3628177661e815e5ce80dd3955d82f (diff)
ARC: [plat-hsdk] use actual clk driver to manage cpu clk
With corresponding clk driver now merged upstream, switch to it. - core_clk now represent the PLL (vs. fixed clk before) - input_clk represent the clk signal src for PLL (basically xtal) Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r--arch/arc/boot/dts/hsdk.dts11
-rw-r--r--arch/arc/plat-hsdk/Kconfig3
2 files changed, 11 insertions, 3 deletions
diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index daeef4ab2df9..b922f3faf554 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -57,10 +57,10 @@
57 }; 57 };
58 }; 58 };
59 59
60 core_clk: core-clk { 60 input_clk: input-clk {
61 #clock-cells = <0>; 61 #clock-cells = <0>;
62 compatible = "fixed-clock"; 62 compatible = "fixed-clock";
63 clock-frequency = <500000000>; 63 clock-frequency = <33333333>;
64 }; 64 };
65 65
66 cpu_intc: cpu-interrupt-controller { 66 cpu_intc: cpu-interrupt-controller {
@@ -102,6 +102,13 @@
102 102
103 ranges = <0x00000000 0xf0000000 0x10000000>; 103 ranges = <0x00000000 0xf0000000 0x10000000>;
104 104
105 core_clk: core-clk@0 {
106 compatible = "snps,hsdk-core-pll-clock";
107 reg = <0x00 0x10>, <0x14B8 0x4>;
108 #clock-cells = <0>;
109 clocks = <&input_clk>;
110 };
111
105 serial: serial@5000 { 112 serial: serial@5000 {
106 compatible = "snps,dw-apb-uart"; 113 compatible = "snps,dw-apb-uart";
107 reg = <0x5000 0x100>; 114 reg = <0x5000 0x100>;
diff --git a/arch/arc/plat-hsdk/Kconfig b/arch/arc/plat-hsdk/Kconfig
index 5a6ed5afb009..bd08de4be75e 100644
--- a/arch/arc/plat-hsdk/Kconfig
+++ b/arch/arc/plat-hsdk/Kconfig
@@ -6,4 +6,5 @@
6# 6#
7 7
8menuconfig ARC_SOC_HSDK 8menuconfig ARC_SOC_HSDK
9 bool "ARC HS Development Kit SOC" 9 bool "ARC HS Development Kit SOC"
10 select CLK_HSDK