From patchwork Mon Oct 31 02:04:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 80111 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2226695qge; Sun, 30 Oct 2016 19:07:03 -0700 (PDT) X-Received: by 10.99.232.17 with SMTP id s17mr37585448pgh.127.1477879623481; Sun, 30 Oct 2016 19:07:03 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j75si22250667pfa.115.2016.10.30.19.07.03; Sun, 30 Oct 2016 19:07:03 -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 S1757865AbcJaCGq (ORCPT + 27 others); Sun, 30 Oct 2016 22:06:46 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:12137 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757838AbcJaCGp (ORCPT ); Sun, 30 Oct 2016 22:06:45 -0400 Received: from 172.24.1.60 (EHLO szxeml426-hub.china.huawei.com) ([172.24.1.60]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DPW19582; Mon, 31 Oct 2016 10:06:30 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by szxeml426-hub.china.huawei.com (10.82.67.181) with Microsoft SMTP Server id 14.3.235.1; Mon, 31 Oct 2016 10:06:22 +0800 From: Kefeng Wang To: Greg Kroah-Hartman , Wei Xu CC: , , , , , , , Kefeng Wang , Russell King Subject: [PATCH RESEND] tty: amba-pl011: Add earlycon support for SBSA UART Date: Mon, 31 Oct 2016 10:04:19 +0800 Message-ID: <1477879459-62421-1-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <20161030133139.GA1595@kroah.com> References: <20161030133139.GA1595@kroah.com> MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected 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 e2c33b9..a4a0b3d 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2357,6 +2357,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