Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753552AbcLFR7Y (ORCPT ); Tue, 6 Dec 2016 12:59:24 -0500 Received: from mail-wj0-f171.google.com ([209.85.210.171]:36849 "EHLO mail-wj0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753070AbcLFR7D (ORCPT ); Tue, 6 Dec 2016 12:59:03 -0500 From: Aleksey Makarov To: "Rafael J . Wysocki" Cc: linux-acpi@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Russell King , Peter Hurley , Aleksey Makarov , Jon Masters , Mark Salter , Duc Dang , Rob Herring , Len Brown Subject: [RFC v2 4/4] ACPI: SPCR: support 16550 UART with 32-bit access Date: Tue, 6 Dec 2016 23:58:29 +0600 Message-Id: <20161206175830.6989-5-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161206175830.6989-1-aleksey.makarov@linaro.org> References: <20161206175830.6989-1-aleksey.makarov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 31 It was suggested to add a new Microsoft Debug Port Table 2 (DBG2) (the table used to enumerate the various subtypes of serial port covered by the SPCR) 16550 UART subtype that may be needed for some additional platforms, such as those based upon AppliedMicro X-Gene ARMv8 SoCs. This new subtype would be 16550-compatible with 32-bit access. There already exists 32-bit variant ACPI_DBG2_ARM_SBSA_32BIT of SBSA console ACPI_DBG2_ARM_SBSA_GENERIC. This patch supports this type of console. Signed-off-by: Aleksey Makarov --- drivers/acpi/spcr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c index 2bf338c..bc17e77 100644 --- a/drivers/acpi/spcr.c +++ b/drivers/acpi/spcr.c @@ -68,6 +68,9 @@ int __init parse_spcr(bool earlycon) case ACPI_DBG2_BCM2835: uart = "pl011"; break; + case ACPI_DBG2_16550_32BIT: + iotype = "mmio32"; + /* fall through */ case ACPI_DBG2_16550_COMPATIBLE: case ACPI_DBG2_16550_SUBSET: if (table->serial_port.space_id == -- 2.10.2