aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvik Sil <aviksil@linux.vnet.ibm.com>2014-06-10 13:26:44 +0530
committerAlexander Graf <agraf@suse.de>2014-06-27 13:48:22 +0200
commitcc84c0f3571c75ced90a9ba9dcbb208464a1d997 (patch)
tree5b000172cd53c1289f89b01817333faff27f9b8b
parenta60438ddd68d45bc378b324fe7ecc61452d4f131 (diff)
spapr: Add "qemu, boot-menu" property to /chosen
This is required to enable boot menu display during booting Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--hw/ppc/spapr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 82f183f173..f4d464a94a 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -442,6 +442,9 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
if (boot_device) {
_FDT((fdt_property_string(fdt, "qemu,boot-device", boot_device)));
}
+ if (boot_menu) {
+ _FDT((fdt_property_cell(fdt, "qemu,boot-menu", boot_menu)));
+ }
_FDT((fdt_property_cell(fdt, "qemu,graphic-width", graphic_width)));
_FDT((fdt_property_cell(fdt, "qemu,graphic-height", graphic_height)));
_FDT((fdt_property_cell(fdt, "qemu,graphic-depth", graphic_depth)));