From patchwork Tue Jun 10 07:56:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikunj A Dadhania X-Patchwork-Id: 357764 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0A3101400AF for ; Tue, 10 Jun 2014 17:57:39 +1000 (EST) Received: from localhost ([::1]:37337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuGw4-0005Yn-PX for incoming@patchwork.ozlabs.org; Tue, 10 Jun 2014 03:57:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuGva-0004ze-1a for qemu-devel@nongnu.org; Tue, 10 Jun 2014 03:57:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuGvQ-0004MW-T2 for qemu-devel@nongnu.org; Tue, 10 Jun 2014 03:57:05 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:47811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuGvQ-0004MO-4N for qemu-devel@nongnu.org; Tue, 10 Jun 2014 03:56:56 -0400 Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Jun 2014 17:56:52 +1000 Received: from d23dlp02.au.ibm.com (202.81.31.213) by e23smtp06.au.ibm.com (202.81.31.212) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 10 Jun 2014 17:56:50 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 494802BB0054; Tue, 10 Jun 2014 17:56:50 +1000 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5A7Yorm11993488; Tue, 10 Jun 2014 17:34:50 +1000 Received: from d23av03.au.ibm.com (localhost [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5A7unCp001917; Tue, 10 Jun 2014 17:56:49 +1000 Received: from abhimanyu.in.ibm.com (abhimanyu.in.ibm.com [9.124.35.101] (may be forged)) by d23av03.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s5A7ujpl001712; Tue, 10 Jun 2014 17:56:47 +1000 From: Nikunj A Dadhania To: qemu-devel@nongnu.org Date: Tue, 10 Jun 2014 13:26:44 +0530 Message-Id: <1402387005-28901-2-git-send-email-nikunj@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14061007-7014-0000-0000-0000050AEEFE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.148 Cc: aik@au1.ibm.com, qemu-ppc@nongnu.org, agraf@suse.de, nikunj@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH 2/3] spapr: Add "qemu, boot-menu" property to /chosen X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Avik Sil This is required to enable boot menu display during booting Signed-off-by: Avik Sil Signed-off-by: Nikunj A Dadhania --- hw/ppc/spapr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index ff37319..c6760a1 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -376,6 +376,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)));