From patchwork Wed Feb 24 17:10:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 8409851 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7FB1F9F372 for ; Wed, 24 Feb 2016 17:12:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A7065202E9 for ; Wed, 24 Feb 2016 17:11:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D4D4E202AE for ; Wed, 24 Feb 2016 17:11:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757851AbcBXRLn (ORCPT ); Wed, 24 Feb 2016 12:11:43 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:36493 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758233AbcBXRLL (ORCPT ); Wed, 24 Feb 2016 12:11:11 -0500 Received: by mail-lb0-f172.google.com with SMTP id x1so14136812lbj.3 for ; Wed, 24 Feb 2016 09:11:10 -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=b53eePoaPA+ZZ7elSXqiAytbpv43qp+QQNc9C935pjo4Bgi9bdQFp3G8eevFuXA99r Xk8lTrrG6puEziBzRvy/hJl/HBKW2nhdeUWTYfU9NNHeNE3CEjClDhRUfSAZNtK6ocm8 krmaDBm4JWskj2iXWPUMNWLhdkUfhb87GMmUY= 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=LduGK7jYhEUgPoc/0EnW2+6obYaen4wCAR7ycgt+/SZ8JLCocpZg+a3jEEBzHPl77E 7zhsgil4MoaQ0xno/igufRbp0T8AwsjOMBATEgG0JVLjFfuTu0gSE3aS46cpQ8uGh4qp ANaHauiKCZWCl67NsrAH1fgqmUlgI0MjxoF/8VsPlcXT1g05CK9R4RH/GpKzjZvfHZW5 ec7Ffbo4aKGrDH517mjIkLNhDcy6tR2x1d4MlkZUTb6n2yN8xQTlXHFItNJ3ofCwQz3z CTsLq0B3bmntf2tH+faTbJEe0TeyYjr12e4DPRi6ZH++kvPCICd96xfjXw7MRYzzHlJS ba9w== X-Gm-Message-State: AG10YOSSWt5BU2+ZwqSlmmWW8sY60iTnh/DgsHlJtnrFJhebLgL9qd6zacVsBAkm7wLRojFt X-Received: by 10.112.158.65 with SMTP id ws1mr14521053lbb.86.1456333870115; Wed, 24 Feb 2016 09:11:10 -0800 (PST) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id ne8sm509556lbc.21.2016.02.24.09.11.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Feb 2016 09:11:09 -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 v2 8/8] serial: pl011: add ACPI DBG2 serial port Date: Wed, 24 Feb 2016 20:10:17 +0300 Message-Id: <1456333819-13482-9-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456333819-13482-1-git-send-email-aleksey.makarov@linaro.org> References: <1456333819-13482-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=unavailable 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