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

@ -21,16 +21,16 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
# CPU Architectures ----------------------------------------------------------------------------
# CHECKME: Move to core and generate a constant for each CPU?
cpu_architectures = {
"mor1kx" : "or1k",
"marocchino" : "or1k",
"vexriscv smp-linux" : "riscv",
"rocketrv64[imac]" : "riscv",
"naxriscv" : "riscv",
"mor1kx" : "or1k",
"marocchino" : "or1k",
"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)