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: 36284 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F7612054D for ; Fri, 29 Aug 2014 13:04:56 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf14756937obc.8 for ; Fri, 29 Aug 2014 06:04:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=KCLQoN/uS4IFfoiEVK59lu5RQIGHP//fuov+VjwKJOg=; b=Lzy7oqF57Z4+vjnpfHbYGDyFKwfYlLKSV7ANcz0mw1myNr9qiWUwhA+fKqJpuZHZwe bAhLoxCSfL3fJ2VUeHjeIJsz/KlWw5r/bY53/1jHgu5WA8wu9jbq2bdkhytiUEGGLk7e mSCIWCUKv8CoDdGOWsKCt0pGI8B1ryy4fq+vZG1MTidlL0GFYdzz1QfiD0It9ZhgFOyA 6pTICR1VfojJAoDT+GUgz6DniEZkkFuY9rRRs0L+p/MdcKGbktVJx6adMRmwK73XDyMi E+Dkc0Dxb4zjY3Rra0l/pouwMx8OLiSF450F7gn1BdmgTbd1hwGX9/TXV2bpN4+CmyIa Zvyw== X-Gm-Message-State: ALoCoQk4eLR9hAnS18G7trtt8lQXWlMBk+ye0DuTnlFgVFzr2edBzBi3do/ytZTBNfYiZJbOTdx7 X-Received: by 10.182.213.105 with SMTP id nr9mr5881435obc.36.1409317496183; Fri, 29 Aug 2014 06:04:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.168 with SMTP id p37ls945737qgp.12.gmail; Fri, 29 Aug 2014 06:04:56 -0700 (PDT) X-Received: by 10.220.81.132 with SMTP id x4mr10138896vck.0.1409317496005; Fri, 29 Aug 2014 06:04:56 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id p9si6199122vct.65.2014.08.29.06.04.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Aug 2014 06:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so2332603vcb.6 for ; Fri, 29 Aug 2014 06:04:55 -0700 (PDT) X-Received: by 10.220.251.200 with SMTP id mt8mr9987327vcb.24.1409317495914; Fri, 29 Aug 2014 06:04:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp12717vcb; Fri, 29 Aug 2014 06:04:55 -0700 (PDT) X-Received: by 10.224.129.201 with SMTP id p9mr17149006qas.75.1409317494646; Fri, 29 Aug 2014 06:04:54 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h10si15394qaz.50.2014.08.29.06.04.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 29 Aug 2014 06:04:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:41925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNLrJ-0004Yz-PC for patch@linaro.org; Fri, 29 Aug 2014 09:04:53 -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-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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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); }