From patchwork Fri Aug 29 13:03:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 384224 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 3292C14001A for ; Fri, 29 Aug 2014 23:04:45 +1000 (EST) Received: from localhost ([::1]:41925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNLr9-0004Yz-8S for incoming@patchwork.ozlabs.org; Fri, 29 Aug 2014 09:04:43 -0400 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KCLQoN/uS4IFfoiEVK59lu5RQIGHP//fuov+VjwKJOg=; b=LBVlwIXBQ0VJsobsg7XQpmrOhiiYg3qGpRqy9FnMxfeC+EfNxS9kcvF3IVF9ZLFb5Q Oj3bK8uAk2pt4WwsWXm33WDpTAQEQxdGKKme2vgLLHart66ruogqpPd5FbuIfEQTxbcI YhL4ZrHyQ8/9DZUvkdk1125pnLSmzNcZvrVr9M38YnbgM1QqfIzOu7fhcArjlvIWALKm Gm141FSdOechxXGx0jYAhrsRadnDpE/jduj+D299PctRN4TbIjpciE4cw0FrOAHPlMAx Xdlk1F5SHiBJ/XQjE9IlmvEwnna9CyoveHw0p+hdNES8sI6O+0CDWEK5Z+tgzodmhaeO QB7A== X-Gm-Message-State: ALoCoQktJ+0CXTrIoddUzIBrG3mDv10sNDh7L6UJSgzIE4BjvLadn5Slw86ivcqSNrntBcN9RduP X-Received: by 10.194.185.113 with SMTP id fb17mr2096706wjc.117.1409317445954; Fri, 29 Aug 2014 06:04:05 -0700 (PDT) Received: from ards-macbook-pro.local (BSN-61-35-126.dial-up.dsl.siol.net. [86.61.35.126]) by mx.google.com with ESMTPSA id bg10sm2768067wjc.47.2014.08.29.06.04.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 06:04:05 -0700 (PDT) From: Ard Biesheuvel To: qemu-devel@nongnu.org, peter.maydell@linaro.org, rob.herring@linaro.org Date: Fri, 29 Aug 2014 15:03:59 +0200 Message-Id: <1409317439-29349-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.179 Cc: Ard Biesheuvel Subject: [Qemu-devel] [PATCH] hw/arm/virt: add linux, stdout-path to /chosen DT node 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 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 Reviewed-by: Rob Herring --- 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); }