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: 9463029 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EC62760231 for ; Tue, 6 Dec 2016 17:59:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E318A2849B for ; Tue, 6 Dec 2016 17:59:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D38E72848F; Tue, 6 Dec 2016 17:59:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 828B22848F for ; Tue, 6 Dec 2016 17:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753313AbcLFR7X (ORCPT ); Tue, 6 Dec 2016 12:59:23 -0500 Received: from mail-wj0-f180.google.com ([209.85.210.180]:32790 "EHLO mail-wj0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752848AbcLFR7D (ORCPT ); Tue, 6 Dec 2016 12:59:03 -0500 Received: by mail-wj0-f180.google.com with SMTP id xy5so331407736wjc.0 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=b4wcYS2aJ5y//6CD/ly3VRY+mR47M2qXSZitQc9cAGFluP3oYUOLe8FeUskgTxj8uW hjeAGD/OyZOpVgPwtYtJGj2mjBR0z2u4RsWq9DDvJOB7jW6rF/2dtevmBtdOMDD+d2Cm HWX1hSO1Lu/mIGKMxOPO8MfyfkD03jXTH3/Tsk7AT2pc9nR3NcV5APp48eAEEEhNNNpi 72pJRirjyR1gseVQeYGMBeGdaweHzjfzzuojmQPU7Mxo5+5wMc4BzKpmRjQQR6TLqFW3 d36ag2oIeLI4FN38mB3N+EwiINqDcyhT01gWW+bOZBdKQGU3lUJ/jE7ira5bJjZZOLpK xYcg== X-Gm-Message-State: AKaTC02JtAOZU1dGKv+UXYo2c0uzH84NKFGq8mDJ53zlHd65MwbF5+lVM2T4W0CbCUvvf9kp 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-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 ==