CPU clock definition in devicetree should be specified per CPU, not in
the cpus node. This modification causes plat_init_time() to not find the
CPU frequency in the devicetree any more, but it can fall back to the
(identical) default.
Co-developed-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Bjørn Mork <bjorn@mork.no>
cpus {
#address-cells = <1>;
#size-cells = <0>;
- frequency = <500000000>;
cpu@0 {
compatible = "mips,mips4KEc";
reg = <0>;
+ clocks = <&cpu_clk>;
+ clock-names = "cpu";
};
};
bootargs = "console=ttyS0,115200";
};
+ cpu_clk: cpu_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <500000000>;
+ };
+
lx_clk: lx_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
cpus {
#address-cells = <1>;
#size-cells = <0>;
- frequency = <800000000>;
cpu@0 {
compatible = "mips,mips34Kc";
reg = <0>;
+ clocks = <&cpu_clk>;
+ clock-names = "cpu";
};
};
interrupt-controller;
};
+ cpu_clk: cpu_clk {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <800000000>;
+ };
+
lx_clk: lx_clk {
compatible = "fixed-clock";
#clock-cells = <0>;