From patchwork Fri Sep 12 13:23:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 37311 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B8A55203EE for ; Fri, 12 Sep 2014 13:31:43 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id p10sf487983wes.9 for ; Fri, 12 Sep 2014 06:31:42 -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:in-reply-to:references: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=Y2rNkOeDfmF7GDi8y0QDyaSE6aV9nYLKa8cbXLhoQWM=; b=OYr6ZCOqCKVNZowoJVAxQZP3hEDCmmI3nzPXz5NFFJvnxQsdsAUm0e8VrzFt6VNx0x 28If3hu8zmfCqOJANn8RmH5VaGKNPHa2P8iFJxHm0nbP20Pyi9tFVAzvjeCzUhTUqlWw wnTb+nVfFq9u6J5W3elHy0dwxdDIafNE/I3oylz4gMuWzp5TQTbhjypePE3FCoyG1A/F tHTmj0AmE/Hb0mxrD74JJwwpq9L12pt2hWXh78FXweRhE6+nj3CeEsOcPcZljhV+hKg9 xLRHxr3QAJWfTy8F/u8Y5iBISyWsY9ZL48JIvdcNi3SScgXDdLCQnOVWmVerKaUDiX33 RdXA== X-Gm-Message-State: ALoCoQlaF/sMRU0Y9+rj0iP6zE9gVoRvt33brpnwy/+hyIHYSENC14B803AGr/M3qizvS2Sn4rwC X-Received: by 10.112.6.226 with SMTP id e2mr2285387lba.7.1410528702428; Fri, 12 Sep 2014 06:31:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.99 with SMTP id jv3ls178686lab.54.gmail; Fri, 12 Sep 2014 06:31:42 -0700 (PDT) X-Received: by 10.152.29.1 with SMTP id f1mr8792952lah.47.1410528702293; Fri, 12 Sep 2014 06:31:42 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by mx.google.com with ESMTPS id jf6si6625101lac.14.2014.09.12.06.31.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Sep 2014 06:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id mc6so941534lab.6 for ; Fri, 12 Sep 2014 06:31:42 -0700 (PDT) X-Received: by 10.152.179.226 with SMTP id dj2mr9174283lac.40.1410528702119; Fri, 12 Sep 2014 06:31:42 -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.112.141.42 with SMTP id rl10csp731970lbb; Fri, 12 Sep 2014 06:31:41 -0700 (PDT) X-Received: by 10.140.46.55 with SMTP id j52mr9596901qga.27.1410528700712; Fri, 12 Sep 2014 06:31:40 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id s5si5588108qai.108.2014.09.12.06.31.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Sep 2014 06:31:40 -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]:44969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSQwt-0003Wj-Nb for patch@linaro.org; Fri, 12 Sep 2014 09:31:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSQpW-0006pk-9z for qemu-devel@nongnu.org; Fri, 12 Sep 2014 09:24:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSQpP-0003xd-TB for qemu-devel@nongnu.org; Fri, 12 Sep 2014 09:24:02 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:46960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSQpP-0003xI-Mc for qemu-devel@nongnu.org; Fri, 12 Sep 2014 09:23:55 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1XSQpO-0003X0-Eg for qemu-devel@nongnu.org; Fri, 12 Sep 2014 14:23:54 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Fri, 12 Sep 2014 14:23:32 +0100 Message-Id: <1410528234-13545-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1410528234-13545-1-git-send-email-peter.maydell@linaro.org> References: <1410528234-13545-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 81.2.115.146 Subject: [Qemu-devel] [PULL 01/23] 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: peter.maydell@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.215.47 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 From: 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 Message-id: 1409317439-29349-1-git-send-email-ard.biesheuvel@linaro.org Reviewed-by: Rob Herring Signed-off-by: Peter Maydell --- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index d6fffc7..e8f231e 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -376,6 +376,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); }