Skip to content

Commit

Permalink
ARC: [plat-hsdk] use actual clk driver to manage cpu clk
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Vineet Gupta <[email protected]>
  • Loading branch information
Eugeniy Paltsev authored and vineetgarc committed Oct 4, 2017
1 parent 9583833 commit ef833ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions arch/arc/boot/dts/hsdk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
};
};

core_clk: core-clk {
input_clk: input-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <500000000>;
clock-frequency = <33333333>;
};

cpu_intc: cpu-interrupt-controller {
Expand Down Expand Up @@ -102,6 +102,13 @@

ranges = <0x00000000 0xf0000000 0x10000000>;

core_clk: core-clk@0 {
compatible = "snps,hsdk-core-pll-clock";
reg = <0x00 0x10>, <0x14B8 0x4>;
#clock-cells = <0>;
clocks = <&input_clk>;
};

serial: serial@5000 {
compatible = "snps,dw-apb-uart";
reg = <0x5000 0x100>;
Expand Down
3 changes: 2 additions & 1 deletion arch/arc/plat-hsdk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
#

menuconfig ARC_SOC_HSDK
bool "ARC HS Development Kit SOC"
bool "ARC HS Development Kit SOC"
select CLK_HSDK

0 comments on commit ef833ea

Please sign in to comment.