mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
tools/linux: add sys_clk to device tree
* required for using standard devm_clk_get() clock mechanism in linux drivers
This commit is contained in:
parent
200a1a18ee
commit
9b67898e99
1 changed files with 10 additions and 0 deletions
|
@ -88,6 +88,16 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
|
|||
};
|
||||
"""
|
||||
|
||||
# Clocks ------------------------------------------------------------------------------------------
|
||||
|
||||
dts += """
|
||||
sys_clk: pll {{
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <{sys_clk_freq}>;
|
||||
}};
|
||||
""".format(sys_clk_freq=d["constants"]["config_clock_frequency"])
|
||||
|
||||
# CPU ------------------------------------------------------------------------------------------
|
||||
|
||||
# RISC-V
|
||||
|
|
Loading…
Reference in a new issue