Skip to content
  • Andre Przywara's avatar
    arm: fdt: add stdout-path to /chosen node · 56e45ea4
    Andre Przywara authored
    
    
    The DT spec describes the stdout-path property in the /chosen node to
    contain the DT path for a default device usable for outputting characters.
    The Linux kernel uses this for earlycon (without further parameters),
    other DT users might rely on this as well.
    
    Add a stdout-path property pointing to the "serial0" alias, then add an
    aliases node at the end of the FDT, containing the actual path. This
    allows the FDT generation code in hw/serial.c to set this string.
    
    Even when we use the virtio console, the serial console is still there
    and works, so we can expose this unconditionally. Putting the virtio
    console path in there will not work anyway.
    
    Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    56e45ea4