Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7139195imu; Mon, 3 Dec 2018 08:17:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/WRcUAoOhjvTQrZndbnYzGxTzkYw5PuHfzZo7//9sy92nhvvmvDZpbjj4xrSEIm74+7lvEw X-Received: by 2002:a63:7154:: with SMTP id b20mr13729409pgn.342.1543853823795; Mon, 03 Dec 2018 08:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543853823; cv=none; d=google.com; s=arc-20160816; b=zfHcGGs4oVXLar8i/7y5w0f49HRiN0hL51biELNkyqfGXZXzLtBPGumiECFS2R6TLN rBwxkaccSH3WAZExPxZc0U1RpWM+KAMozoUXn2lOOIkElNmJ77k9pwL+3zHR8m5cRYHI fmPqsZDaCPZB8CMiSxWQ9cNQpdBoVPLXzyrCDllWrx1VpGcxlb3/J51HYAQpHvigkBLi XvPUP3rK3alc0conm05ls5ybYGOzZIvaXcvj8EgIbOLf2Gsb/eIb04egeujffmPorxih Sn+ijf8N1DmdeurfCrPMX6DYdoEi6+UAdAr8HQmIgxETuTi/rcZ/BY5GynqPxWiL4CDO iu2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=KGh0Tl6PACTtm8AzFHl8UTk391wLwtvKj9a2vZmPpa0=; b=g9iJ2h8QQQSFIlFQrE4g8CyTqYPOd86Rpl8QBLUQfAgkAqC9xUdX9eRlVJknYUA++9 XV53yE9lNNptZxq8AgqB8gZnlWyxwJJnCcwB59O3wfNIu8eeJ4VbIZwtrO+qjzVVLSxJ dtC4EjO8WvvqNr+mXizt3hkGLDCkv81H2yILgC91r9XSpvTB6voDzx55CbJqR9TwPSnV MRMh8K2n2VozIPmX4fk9FQ2JETIc+2w30x3dQMHOtwhdKIm2faiC9eM5JiJWriHEdWHx uQPp93m1xFNP0pHsGmoVtyVSClkpt7lG6C+BeN3FhYMjX7D2/oSTu/SY0QzChVprQJfm jFFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ouCYXltl; dkim=pass header.i=@codeaurora.org header.s=default header.b=WjwDqM0P; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si15461253plb.54.2018.12.03.08.16.46; Mon, 03 Dec 2018 08:17:03 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=ouCYXltl; dkim=pass header.i=@codeaurora.org header.s=default header.b=WjwDqM0P; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbeLCQOF (ORCPT + 99 others); Mon, 3 Dec 2018 11:14:05 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:58092 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbeLCQOF (ORCPT ); Mon, 3 Dec 2018 11:14:05 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4A236607B5; Mon, 3 Dec 2018 16:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543853637; bh=p+ckYeGxVkFzcZBt36Bc/WcQWAIaOvx10vsKIeMm+Xw=; h=From:To:Cc:Subject:Date:From; b=ouCYXltlc/ktvqXgVlLqTPC5m4LgZRJOz8iqIqk8VkwS99HDMeAYyZgKY+eyjP7ta 1SucWGgVmK/P1yVYLV8med7uIiAvW/3YPV8FaYYiNDxTXPFYFp7RYDfqkDai9HlgYD uQfiFXwHXZRYLOok2Wsk2+eQj85X0EXBcevP4Vls= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from jhugo-perf-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D89356020A; Mon, 3 Dec 2018 16:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543853636; bh=p+ckYeGxVkFzcZBt36Bc/WcQWAIaOvx10vsKIeMm+Xw=; h=From:To:Cc:Subject:Date:From; b=WjwDqM0PI4Ft3vAOKcnb8peSp5PenO94Z5mRkjpK3x9bLI25/8JYGLajaxlmV37mE xxxwZ1UCC1NiMqHAc2HOppVAighqlO94qOypNMfaq6kkN9YWyhvkPK5vBoitd1YWa8 mr30kjgDvZBmHizvGS9Eeshkeup0A6pIG0IJmN/8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D89356020A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org From: Jeffrey Hugo To: andy.gross@linaro.org, david.brown@linaro.org, mturquette@baylibre.com, sboyd@kernel.org Cc: bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Hugo Subject: [PATCH v2] clk: qcom: Fix MSM8998 resets Date: Mon, 3 Dec 2018 09:13:43 -0700 Message-Id: <1543853623-7846-1-git-send-email-jhugo@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The offsets for the defined BCR reset registers does not match the hardware documentation. Update the values to match the hardware documentation. Fixes: b5f5f525c547 (clk: qcom: Add MSM8998 Global Clock Control (GCC) driver) Signed-off-by: Jeffrey Hugo Reviewed-by: Bjorn Andersson --- v2: -Fixed GCC_PCIE_0_BCR per Bjorn and added his reviewed-by drivers/clk/qcom/gcc-msm8998.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index 9f0ae40..c3bb9ff 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2742,25 +2742,25 @@ enum { }; static const struct qcom_reset_map gcc_msm8998_resets[] = { - [GCC_BLSP1_QUP1_BCR] = { 0x102400 }, - [GCC_BLSP1_QUP2_BCR] = { 0x110592 }, - [GCC_BLSP1_QUP3_BCR] = { 0x118784 }, - [GCC_BLSP1_QUP4_BCR] = { 0x126976 }, - [GCC_BLSP1_QUP5_BCR] = { 0x135168 }, - [GCC_BLSP1_QUP6_BCR] = { 0x143360 }, - [GCC_BLSP2_QUP1_BCR] = { 0x155648 }, - [GCC_BLSP2_QUP2_BCR] = { 0x163840 }, - [GCC_BLSP2_QUP3_BCR] = { 0x172032 }, - [GCC_BLSP2_QUP4_BCR] = { 0x180224 }, - [GCC_BLSP2_QUP5_BCR] = { 0x188416 }, - [GCC_BLSP2_QUP6_BCR] = { 0x196608 }, - [GCC_PCIE_0_BCR] = { 0x438272 }, - [GCC_PDM_BCR] = { 0x208896 }, - [GCC_SDCC2_BCR] = { 0x81920 }, - [GCC_SDCC4_BCR] = { 0x90112 }, - [GCC_TSIF_BCR] = { 0x221184 }, - [GCC_UFS_BCR] = { 0x479232 }, - [GCC_USB_30_BCR] = { 0x61440 }, + [GCC_BLSP1_QUP1_BCR] = { 0x19000 }, + [GCC_BLSP1_QUP2_BCR] = { 0x1b000 }, + [GCC_BLSP1_QUP3_BCR] = { 0x1d000 }, + [GCC_BLSP1_QUP4_BCR] = { 0x1f000 }, + [GCC_BLSP1_QUP5_BCR] = { 0x21000 }, + [GCC_BLSP1_QUP6_BCR] = { 0x23000 }, + [GCC_BLSP2_QUP1_BCR] = { 0x26000 }, + [GCC_BLSP2_QUP2_BCR] = { 0x28000 }, + [GCC_BLSP2_QUP3_BCR] = { 0x2a000 }, + [GCC_BLSP2_QUP4_BCR] = { 0x2c000 }, + [GCC_BLSP2_QUP5_BCR] = { 0x2e000 }, + [GCC_BLSP2_QUP6_BCR] = { 0x30000 }, + [GCC_PCIE_0_BCR] = { 0x6b000 }, + [GCC_PDM_BCR] = { 0x33000 }, + [GCC_SDCC2_BCR] = { 0x14000 }, + [GCC_SDCC4_BCR] = { 0x16000 }, + [GCC_TSIF_BCR] = { 0x36000 }, + [GCC_UFS_BCR] = { 0x75000 }, + [GCC_USB_30_BCR] = { 0xf000 }, }; static const struct regmap_config gcc_msm8998_regmap_config = { -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.