From patchwork Mon Feb 29 12:42:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 8452921 Return-Path: X-Original-To: patchwork-linux-acpi@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 42AC0C0553 for ; Mon, 29 Feb 2016 12:44:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 793042025A for ; Mon, 29 Feb 2016 12:44:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA48620254 for ; Mon, 29 Feb 2016 12:44:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753648AbcB2MoW (ORCPT ); Mon, 29 Feb 2016 07:44:22 -0500 Received: from mail-lb0-f176.google.com ([209.85.217.176]:32987 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754923AbcB2MnV (ORCPT ); Mon, 29 Feb 2016 07:43:21 -0500 Received: by mail-lb0-f176.google.com with SMTP id ed16so984324lbb.0 for ; Mon, 29 Feb 2016 04:43:20 -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=U+3+jHBN+G3wulqZpn4pKYOlfmlNZLGfVd7uS34Tcl8=; b=aX4uOwBYpLZaoNwT+f0WnjEvTIszwzq5pnsTNcCgjZGkv3jnVAfp0G3aR+fRCSJ+DL mISTYITChuXGPWXu66KVIRMEKCpe+9ig1XOhsuuQP99itrsnkGpB2y0GAIocE3wwq9L2 6pBYQWT7VoGIzYaiMpiTzhQ7WTiZnUoF1GyQQ= 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=U+3+jHBN+G3wulqZpn4pKYOlfmlNZLGfVd7uS34Tcl8=; b=MPNri8PA2mT4B5hyVMd9+GErxzDVEebAg2rcd1q2iWTIThlQOkDPQgp5UYJDCTEPhn UdZM99VKO85tW6mvktZyIyNK4yBghbP6pbHkCjQB5fc7YMC4ruiqCvwGe7Y+sCP3DenH PzfeFHmElQZ1dEIrWzjyX/o5N2RCrFJX0u0EDMVUPeWbKE7DArliTXov0EVqW/kjDYpj wRMIBjlPG9OAFNUGlrVk0LOQKWw8Yk82tUM3uQ/nPe0aTnuSroO52cqZl12HNyLgN/4P YjTBuah/faMAVbc1ePNbwD2EYe7dN5sWDzx1gOR9DIrIU9guWmPuyoDNpzRf5CGdtLrc ibng== X-Gm-Message-State: AD7BkJI9N0/wAZnpAc7csffh9f4tOi+R48MljIpuUX1kEE3myuVC+xWfC27+pxYDT5pXQt/M X-Received: by 10.112.134.202 with SMTP id pm10mr5274971lbb.36.1456749799752; Mon, 29 Feb 2016 04:43:19 -0800 (PST) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id ke9sm3929150lbc.28.2016.02.29.04.43.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 04:43:19 -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 , Matthias Brugger , Jiri Slaby Subject: [PATCH v3 7/7] serial: pl011: add ACPI DBG2 serial port Date: Mon, 29 Feb 2016 15:42:04 +0300 Message-Id: <1456749726-30261-8-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456749726-30261-1-git-send-email-aleksey.makarov@linaro.org> References: <1456749726-30261-1-git-send-email-aleksey.makarov@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 500232a..d38da86 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" @@ -2327,6 +2328,8 @@ static int __init pl011_early_console_setup(struct earlycon_device *device, return 0; } 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