Merge pull request #653 from gsomlo/gls-dt-cpufreq
RFC: json2dts: set CPU clock-frequency and SoC bus-frequency
This commit is contained in:
commit
3673f38d63
|
@ -56,7 +56,7 @@ def generate_dts(d):
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
timebase-frequency = <{sys_clk_freq}>;
|
timebase-frequency = <{sys_clk_freq}>;
|
||||||
cpu@0 {{
|
cpu@0 {{
|
||||||
clock-frequency = <0x0>;
|
clock-frequency = <{sys_clk_freq}>;
|
||||||
compatible = "spinalhdl,vexriscv", "sifive,rocket0", "riscv";
|
compatible = "spinalhdl,vexriscv", "sifive,rocket0", "riscv";
|
||||||
d-cache-block-size = <0x40>;
|
d-cache-block-size = <0x40>;
|
||||||
d-cache-sets = <0x40>;
|
d-cache-sets = <0x40>;
|
||||||
|
@ -128,9 +128,10 @@ def generate_dts(d):
|
||||||
soc {
|
soc {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
bus-frequency = <{sys_clk_freq}>;
|
||||||
compatible = "simple-bus";
|
compatible = "simple-bus";
|
||||||
ranges;
|
ranges;
|
||||||
"""
|
""".format(sys_clk_freq=d["constants"]["config_clock_frequency"])
|
||||||
|
|
||||||
# Interrupt controller -----------------------------------------------------------------------------
|
# Interrupt controller -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue