1. 08 Feb, 2019 1 commit
    • 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: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      56e45ea4
  2. 09 Jun, 2017 1 commit
    • Andre Przywara's avatar
      FDT: use static phandles · cd9a8066
      Andre Przywara authored
      
      
      The current implementation of fdt__alloc_phandle() suffers from being
      implemented in a static inline function situated in a header file.
      This will only create expected results within a single compilation
      unit.
      It seems a bit over the top to use a function to allocate phandles,
      when at the end of the day a phandle is just a unique identifier.
      To simplify things - especially with upcoming patches - we just
      introduce an enum per architecture to hold all possible phandle sources
      and use that instead of the dynamic allocation.
      Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
      Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
      cd9a8066
  3. 01 Jun, 2015 3 commits