diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2018-03-01 11:35:50 +0530 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-03-06 13:16:29 +1100 |
commit | 90ee4e01a1cddcb56bd65f10dd80aad7f86b5829 (patch) | |
tree | 925c8c26ec20daf484765de17795b216671afd45 /hw/ppc/e500.c | |
parent | 813f3cf655c6f3afe6e2ef04281ba7cd5ea24357 (diff) | |
download | qemu-90ee4e01a1cddcb56bd65f10dd80aad7f86b5829.zip qemu-90ee4e01a1cddcb56bd65f10dd80aad7f86b5829.tar.gz qemu-90ee4e01a1cddcb56bd65f10dd80aad7f86b5829.tar.bz2 |
hw/ppc/spapr,e500: Use new property "stdout-path" for boot console
Linux kernel commit 2a9d832cc9aae21ea827520fef635b6c49a06c6d
(of: Add bindings for chosen node, stdout-path) deprecated chosen property
"linux,stdout-path" and "stdout".
Introduce the new property "stdout-path" and continue supporting the older
property to remain compatible with existing/older firmware. This older property
can be deprecated after 5 years.
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/e500.c')
-rw-r--r-- | hw/ppc/e500.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 13a34f5..ef541a0 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -120,7 +120,14 @@ static void dt_serial_create(void *fdt, unsigned long long offset, qemu_fdt_setprop_string(fdt, "/aliases", alias, ser); if (defcon) { + /* + * "linux,stdout-path" and "stdout" properties are deprecated by linux + * kernel. New platforms should only use the "stdout-path" property. Set + * the new property and continue using older property to remain + * compatible with the existing firmware. + */ qemu_fdt_setprop_string(fdt, "/chosen", "linux,stdout-path", ser); + qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", ser); } } |