From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNLqf-00046s-R9 for qemu-devel@nongnu.org; Fri, 29 Aug 2014 09:04:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNLqZ-0004Ru-GJ for qemu-devel@nongnu.org; Fri, 29 Aug 2014 09:04:13 -0400 Received: from mail-we0-f179.google.com ([74.125.82.179]:36992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNLqZ-0004RQ-AZ for qemu-devel@nongnu.org; Fri, 29 Aug 2014 09:04:07 -0400 Received: by mail-we0-f179.google.com with SMTP id t60so2139787wes.10 for ; Fri, 29 Aug 2014 06:04:06 -0700 (PDT) From: Ard Biesheuvel Date: Fri, 29 Aug 2014 15:03:59 +0200 Message-Id: <1409317439-29349-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [Qemu-devel] [PATCH] hw/arm/virt: add linux, stdout-path to /chosen DT node List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, rob.herring@linaro.org Cc: Ard Biesheuvel Add a property "linux,stdout-path" to the /chosen DT node and make it point to the emulated UART. This allows users such as the Linux kernel to produce console output without the need to pass console= or earlycon=pl011,0x... command line arguments. Signed-off-by: Ard Biesheuvel --- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 0edc1fa6cb22..619660a011b0 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -377,6 +377,8 @@ static void create_uart(const VirtBoardInfo *vbi, qemu_irq *pic) vbi->clock_phandle, vbi->clock_phandle); qemu_fdt_setprop(vbi->fdt, nodename, "clock-names", clocknames, sizeof(clocknames)); + + qemu_fdt_setprop_string(vbi->fdt, "/chosen", "linux,stdout-path", nodename); g_free(nodename); } -- 1.8.3.2