From patchwork Tue Dec 6 17:58:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 86888 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2147080qgi; Tue, 6 Dec 2016 09:59:38 -0800 (PST) X-Received: by 10.84.210.130 with SMTP id a2mr139190613pli.106.1481047178907; Tue, 06 Dec 2016 09:59:38 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a61si20357579pla.133.2016.12.06.09.59.38; Tue, 06 Dec 2016 09:59:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254AbcLFR7V (ORCPT + 2 others); Tue, 6 Dec 2016 12:59:21 -0500 Received: from mail-wj0-f173.google.com ([209.85.210.173]:36849 "EHLO mail-wj0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752710AbcLFR7D (ORCPT ); Tue, 6 Dec 2016 12:59:03 -0500 Received: by mail-wj0-f173.google.com with SMTP id tk12so36429179wjb.3 for ; Tue, 06 Dec 2016 09:59:02 -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=IpDftPAOVCBlAQyGHZxw1TDLycNVk4aSCdUJKp1gqzY=; b=jm/59SYoEZZXhHYxrtwV4P/poviA5dJfOyQPz35uiSqyjN043f1zC84vr0s3iexoGi vponenZbv2xyHG3h0xpmoDBzZxbes2Pdsy0zp/jb82C4LyhDfYWuWgFW3qxKPSrOqCQt o+j58lXN1rxO4FwqAqnap0GBgutJRPDC1abAA= 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=IpDftPAOVCBlAQyGHZxw1TDLycNVk4aSCdUJKp1gqzY=; b=IMDzlfPF3quepoVbFSFGkRYXYMtzEibfikKW0ZhDmagdPCpdlKUp+p2jv7zCv/bWhc XHhNnR6z3F8gPqOpgc6AbsHbgKxD/8NVd0gIHGsvvovN3H6BAu9CP8jTuETLoDsRasnQ 8n5O9wM+m3ePBbvRDjX8kCTFBD8VI28Jv8/uE2Fv5h41Zz3tOp+f6DU6DFvUOQmVO1sM ypi2mxtGzi4xiL67rVNwQqKmg84Gr2eLh9cDnlrxoRjFyRXZjMmtcjjr1yDG5EVo9sl6 WLg3wWYqXcBDBE6RFgp/W3toN3DNiY3SnYmNs0YLasISh1t7RQfnrtdjj3ifcDKkVZpJ g5wg== X-Gm-Message-State: AKaTC00xNa/UcVwzxmV2EpfRF5+o0KN1+52e7zjPwUxOrcgIYe9Zrcl1iuzYbr+PifWrRaIO X-Received: by 10.25.18.167 with SMTP id 39mr23479143lfs.81.1481047141483; Tue, 06 Dec 2016 09:59:01 -0800 (PST) Received: from localhost.localdomain (host-95-189-166-46.pppoe.omsknet.ru. [95.189.166.46]) by smtp.gmail.com with ESMTPSA id y26sm3972918lja.22.2016.12.06.09.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 09:59:00 -0800 (PST) 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-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org 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(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 ==