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: 62813 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2526601lbl; Wed, 24 Feb 2016 09:11:30 -0800 (PST) X-Received: by 10.98.44.73 with SMTP id s70mr56394309pfs.2.1456333890769; Wed, 24 Feb 2016 09:11:30 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si6060910pfj.62.2016.02.24.09.11.30; Wed, 24 Feb 2016 09:11:30 -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 S1758294AbcBXRLS (ORCPT + 30 others); Wed, 24 Feb 2016 12:11:18 -0500 Received: from mail-lb0-f178.google.com ([209.85.217.178]:34040 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758250AbcBXRLN (ORCPT ); Wed, 24 Feb 2016 12:11:13 -0500 Received: by mail-lb0-f178.google.com with SMTP id of3so14160261lbc.1 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=XyLmFahbYDYgbKoA3HLCBsrvDL7zA+u/XmCPrGWpKNL/NUF2vYBDO8XQmcJcCFpWvv i3yLBG5BodPmSbQA86A7zh15NdaV4ldOCqQLXH1iFfQrw+kQGY0mzLetj4CXkYnPwpyq k5w9vNUbatMKEFRi0+Vy3AlgZ4Ag8XcLCDesqRnDCSZ/u3Gm0DzM88m6B24mQUgFSFDa RdnVLSf/GXUb/h5s+jP2uKNQLLVz3K2pCpAsqn7HwLPC+GrA9hiIn43T+gXlRCQPS31h R2qfQWqLO2U6l1L/PjTy5gjQmyU52JOlgo6y2XQxir4UwpcvpdTEc/DzY0SPEmn6CviG i6CQ== X-Gm-Message-State: AG10YOQ6NUhiqyLDDnoIdQdeFZ3Zr3QNHy+NZNu4YMjcXV9caf80W+wmtIQp02xxNLhZxB4Z 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-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 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