litex_json2dts_linux: Switch to cpu_name instead of cpu_human_name.

This commit is contained in:
Florent Kermarrec 2024-03-08 18:53:44 +01:00
parent 49f12ea297
commit c2fd1e9a49
1 changed files with 6 additions and 6 deletions

View File

@ -23,14 +23,14 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
cpu_architectures = {
"mor1kx" : "or1k",
"marocchino" : "or1k",
"vexriscv smp-linux" : "riscv",
"rocketrv64[imac]" : "riscv",
"vexriscv" : "riscv",
"rocket" : "riscv",
"naxriscv" : "riscv",
}
# CPU Parameters -------------------------------------------------------------------------------
ncpus = int(d["constants"].get("config_cpu_count", 1))
cpu_name = d["constants"].get("config_cpu_human_name")
cpu_name = d["constants"].get("config_cpu_name")
cpu_arch = cpu_architectures[cpu_name]
cpu_isa = d["constants"].get("config_cpu_isa", None)
cpu_mmu = d["constants"].get("config_cpu_mmu", None)