json2dts_linux: Use liteuart earlycon
Now that liteuart earlycon is upstream we can use it. This means all litex soc's should be able to get an earlycon now. Tested on mor1kx.
This commit is contained in:
parent
378d129c5f
commit
ec2f2a6af5
|
@ -57,7 +57,7 @@ def generate_dts(d, initrd_start=None, initrd_size=None, initrd=None, polling=Fa
|
||||||
bootargs = "mem={main_ram_size_mb}M@0x{main_ram_base:x} {console} {rootfs} init=/sbin/init swiotlb=32";""".format(
|
bootargs = "mem={main_ram_size_mb}M@0x{main_ram_base:x} {console} {rootfs} init=/sbin/init swiotlb=32";""".format(
|
||||||
main_ram_base = d["memories"]["main_ram"]["base"],
|
main_ram_base = d["memories"]["main_ram"]["base"],
|
||||||
main_ram_size_mb = d["memories"]["main_ram"]["size"] // mB,
|
main_ram_size_mb = d["memories"]["main_ram"]["size"] // mB,
|
||||||
console = "console=liteuart earlycon=sbi",
|
console = "console=liteuart earlycon=liteuart,0x{:x}".format(d["csr_bases"]["uart"]),
|
||||||
rootfs = "rootwait root=/dev/ram0")
|
rootfs = "rootwait root=/dev/ram0")
|
||||||
|
|
||||||
if initrd_enabled is True:
|
if initrd_enabled is True:
|
||||||
|
|
Loading…
Reference in New Issue