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: 8376681 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A6188C0553 for ; Mon, 22 Feb 2016 13:53:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D04FA20501 for ; Mon, 22 Feb 2016 13:53:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C5CC7204FF for ; Mon, 22 Feb 2016 13:53:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXqu8-0001HD-Rs; Mon, 22 Feb 2016 13:52:00 +0000 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXqqT-0005Xc-5z for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2016 13:48:15 +0000 Received: by mail-lf0-x230.google.com with SMTP id l143so93920406lfe.2 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=ZgH2juWcyJra797jJ5VZXd/H0hiJEcSD+YOTvYjOY1LcPB+T63aUoCm7Xl+I2qOQOJ HG7Z/9GlN8i/55YwuVJFMHyTmnTTr2TRa+mlVsp3ZRK9cukP/veOxhznk8/yVbZ0HVFR U3O/f2N6Mjru6pBMK2RH3uUFXNqmA1bPworKw+Wtlx9FHNrmq79+ftEi0qCDwyw2l6Av pxQGXUdy+KgKnc/VAmIEfVyDRiKYAbb71ZMU0nlpTEx2kXCiZYh7rVFc8b0pla85pxe9 zrOvP5Lp+yWgq2cNk2aVuEYxcbLXMJ4bozMBLsHUmslJgv22RZkChA1LkFjzscA4fkIj Xi4A== X-Gm-Message-State: AG10YOQnt4gAUjpb9W4vUwwb+uZlsme6VI18qXpNFtXadtrAfXnDeskWsw7WR6/RCSwFqciF 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160222_054813_669623_75130D1B X-CRM114-Status: GOOD ( 10.77 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Russell King , Graeme Gregory , Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Leif Lindholm , Aleksey Makarov , Christopher Covington , linux-serial@vger.kernel.org, Jiri Slaby , Al Stone , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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