tools/litex_json2dts_linux: Fix intc0 regression.

Introduced when disabling lintc0 generation on Rocket.
This commit is contained in:
Florent Kermarrec 2023-03-10 09:34:00 +01:00
parent fb1cd22ac2
commit 7bd98cf5d9
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
reg-names = "control";
}};
""".format(clint_base=d["memories"]["clint"]["base"])
if cpu_arch == "riscv":
dts += """
intc0: interrupt-controller@{plic_base:x} {{
compatible = "sifive,fu540-c000-plic", "sifive,plic-1.0.0";