tools/litex_json2dts: Fix DTS indentation

- Replace bogus TAB by spaces,
  - Drop spaces from empty lines.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
Geert Uytterhoeven 2021-03-26 15:05:33 +01:00
parent 6b482bce54
commit 610bfe4d0c
1 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
}}; }};
""".format(cpu=cpu, irq=cpu, sys_clk_freq=d["constants"]["config_clock_frequency"], cpu_isa=d["constants"]["cpu_isa"]) """.format(cpu=cpu, irq=cpu, sys_clk_freq=d["constants"]["config_clock_frequency"], cpu_isa=d["constants"]["cpu_isa"])
dts += """ dts += """
}; };
""" """
# mor1kx # mor1kx
@ -163,7 +163,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
{cpu_mapping}>; {cpu_mapping}>;
riscv,ndev = <32>; riscv,ndev = <32>;
}}; }};
""".format( """.format(
plic_base =d["memories"]["plic"]["base"], plic_base =d["memories"]["plic"]["base"],
cpu_mapping =("\n" + " "*20).join(["&L{} 11 &L{} 9".format(cpu, cpu) for cpu in cpus])) cpu_mapping =("\n" + " "*20).join(["&L{} 11 &L{} 9".format(cpu, cpu) for cpu in cpus]))
@ -275,7 +275,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
bus-width = <0x04>; bus-width = <0x04>;
status = "okay"; status = "okay";
}}; }};
""".format( """.format(
mmc_csr_base = d["csr_bases"]["sdphy"], mmc_csr_base = d["csr_bases"]["sdphy"],
sdphy_csr_base = d["csr_bases"]["sdphy"], sdphy_csr_base = d["csr_bases"]["sdphy"],
sdcore_csr_base = d["csr_bases"]["sdcore"], sdcore_csr_base = d["csr_bases"]["sdcore"],