From patchwork Mon Feb 22 13:46:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 62574 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1245404lbl; Mon, 22 Feb 2016 05:48:09 -0800 (PST) X-Received: by 10.98.0.11 with SMTP id 11mr38256978pfa.5.1456148889357; Mon, 22 Feb 2016 05:48:09 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tw5si39848984pac.131.2016.02.22.05.48.09; Mon, 22 Feb 2016 05:48:09 -0800 (PST) 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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755290AbcBVNsC (ORCPT + 30 others); Mon, 22 Feb 2016 08:48:02 -0500 Received: from mail-lf0-f48.google.com ([209.85.215.48]:36612 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755267AbcBVNr5 (ORCPT ); Mon, 22 Feb 2016 08:47:57 -0500 Received: by mail-lf0-f48.google.com with SMTP id 78so93711987lfy.3 for ; Mon, 22 Feb 2016 05:47:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XYFsWv+XLB0pyedNE+lcz5D63KdLlFKvuyXIhilfzng=; b=HKYrZjfCputrln3AmRlDO6S2FSXxjzQNcaEV5+A4hwWxLHsXbq0fPhA9VtCQrbK4QC AFuQUkV/Bh07DDaCA4K15yFaZiBvOuAXgv7W0T59wSFdfFctlCXkOM9q6+p5BwjcvKRJ znwWnfGCCykpKXdgJMOz8c0d7KfdoDxqrag7o= 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:in-reply-to :references; bh=XYFsWv+XLB0pyedNE+lcz5D63KdLlFKvuyXIhilfzng=; b=l5lsMBdZ+NpIhiwpizTLYAyo7HQAuKsCYdSk1RXqmyJzAZQVT7EzZ3Q+x6FPLHS9vW 6Nr+2t9TxhTyz6VkICpqjt21Ony7k/pCbcpnaCpsA4e57KdDj7YCm8m1dY5SihnxwcTS +vYl9mnz2kHM2qibqhQDj0ONgahk4K/dQSwQWyPmz4JvYc86kfcyuXH6OSVX3s4ldhot 4TunLr6SSOHWXfi8OFIdzx6TQD1sDq4dFxVuO7Kq6+yTRmG8OgXXd48EycnoyUvH3pe6 pJ9k3fnLpl9HoUlUKyxLCRKn6dsmxjPD2J11CAYg8qMYSmRK31o/MRGea9h2UogXIhVd lnnA== X-Gm-Message-State: AG10YOS6WVmAuEF7Cn76Tk//8AzF5UMCfHPRjmvLgMtanNN92XAqJvaIMreFnnIM8JIT/RG5 X-Received: by 10.25.163.76 with SMTP id m73mr8153930lfe.39.1456148876448; Mon, 22 Feb 2016 05:47:56 -0800 (PST) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id s5sm2564633lbr.12.2016.02.22.05.47.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 05:47:55 -0800 (PST) From: Aleksey Makarov To: linux-acpi@vger.kernel.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Aleksey Makarov , Russell King , Greg Kroah-Hartman , "Rafael J . Wysocki" , Leif Lindholm , Graeme Gregory , Al Stone , Christopher Covington , Jiri Slaby Subject: [PATCH 8/8] serial: pl011: add ACPI DBG2 serial port Date: Mon, 22 Feb 2016 16:46:56 +0300 Message-Id: <1456148818-26257-9-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456148818-26257-1-git-send-email-aleksey.makarov@linaro.org> References: <1456148818-26257-1-git-send-email-aleksey.makarov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a handler for ACPI DBG2 serial port of type ACPI_DBG2_ARM_PL011 that sets up an earlycon on it. Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba-pl011.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.1 diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index c0da0cc..5633741 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -59,6 +59,7 @@ #include #include #include +#include #include "amba-pl011.h" @@ -2329,6 +2330,8 @@ static int __init pl011_early_console_setup(struct earlycon_device *device, } EARLYCON_DECLARE(pl011, pl011_early_console_setup); OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup); +ACPI_DBG2_EARLYCON_DECLARE(pl011, ACPI_DBG2_ARM_PL011, + pl011_early_console_setup); #else #define AMBA_CONSOLE NULL