From patchwork Sat Sep 24 09:14:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 76929 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp265087qgf; Sat, 24 Sep 2016 02:20:45 -0700 (PDT) X-Received: by 10.98.137.89 with SMTP id v86mr7163046pfd.38.1474708845647; Sat, 24 Sep 2016 02:20:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si12733110paj.25.2016.09.24.02.20.45; Sat, 24 Sep 2016 02:20:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761946AbcIXJUe (ORCPT + 27 others); Sat, 24 Sep 2016 05:20:34 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:16767 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761913AbcIXJUa (ORCPT ); Sat, 24 Sep 2016 05:20:30 -0400 Received: from 172.24.1.47 (EHLO SZXEML424-HUB.china.huawei.com) ([172.24.1.47]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DNQ03900; Sat, 24 Sep 2016 17:16:24 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by SZXEML424-HUB.china.huawei.com (10.82.67.153) with Microsoft SMTP Server id 14.3.235.1; Sat, 24 Sep 2016 17:16:15 +0800 From: Kefeng Wang To: Wei Xu CC: Rob Herring , Mark Rutland , , Catalin Marinas , Will Deacon , , , , Kefeng Wang , Russell King , Greg Kroah-Hartman Subject: [PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART Date: Sat, 24 Sep 2016 17:14:25 +0800 Message-ID: <1474708465-38958-6-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1474708465-38958-1-git-send-email-wangkefeng.wang@huawei.com> References: <1474708465-38958-1-git-send-email-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.57E64469.0068, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 9db229f9ce9deff2664e0cf2b29b4de1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Declare an OF early console for SBSA UART so that the early console device can be specified via the "stdout-path" property in device-tree. Cc: Russell King Cc: Greg Kroah-Hartman Signed-off-by: Kefeng Wang --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+) -- 1.7.12.4 diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 7d9b291..3688d3b 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2330,6 +2330,7 @@ static int __init pl011_early_console_setup(struct earlycon_device *device, return 0; } OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup); +OF_EARLYCON_DECLARE(pl011, "arm,sbsa-uart", pl011_early_console_setup); #else #define AMBA_CONSOLE NULL