litex_json2dts_linux: Switch to cpu_name instead of cpu_human_name.
This commit is contained in:
parent
49f12ea297
commit
c2fd1e9a49
|
@ -23,14 +23,14 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, root_devic
|
||||||
cpu_architectures = {
|
cpu_architectures = {
|
||||||
"mor1kx" : "or1k",
|
"mor1kx" : "or1k",
|
||||||
"marocchino" : "or1k",
|
"marocchino" : "or1k",
|
||||||
"vexriscv smp-linux" : "riscv",
|
"vexriscv" : "riscv",
|
||||||
"rocketrv64[imac]" : "riscv",
|
"rocket" : "riscv",
|
||||||
"naxriscv" : "riscv",
|
"naxriscv" : "riscv",
|
||||||
}
|
}
|
||||||
|
|
||||||
# CPU Parameters -------------------------------------------------------------------------------
|
# CPU Parameters -------------------------------------------------------------------------------
|
||||||
ncpus = int(d["constants"].get("config_cpu_count", 1))
|
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_arch = cpu_architectures[cpu_name]
|
||||||
cpu_isa = d["constants"].get("config_cpu_isa", None)
|
cpu_isa = d["constants"].get("config_cpu_isa", None)
|
||||||
cpu_mmu = d["constants"].get("config_cpu_mmu", None)
|
cpu_mmu = d["constants"].get("config_cpu_mmu", None)
|
||||||
|
|
Loading…
Reference in New Issue