Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7090509imu; Mon, 3 Dec 2018 07:36:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJUmiyXVRihXqTm8CQwSM7AVXjhizQ2k0+Dpao9GrZQ7NEnMUAZf9FHny6kLWrtHqM5Ilw X-Received: by 2002:a63:e156:: with SMTP id h22mr12490815pgk.255.1543851386982; Mon, 03 Dec 2018 07:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543851386; cv=none; d=google.com; s=arc-20160816; b=UEo40RTbDdALeS8MVNVzKZpFEIBagC3GAuuqPM+plO14G7OXE3YAxV3dzB415m08/V G8Cf8qZU7fTDODz5YDCj8XkVQ8jhpQOX+PSQdrUshPu/Z2Oaf3U8Gc4V3LzgoPQsQ6gy jGyeLXzw5d6RtpUf/25Ud0PHBwA13vPIKp2kg3f99KegZqhkpvwphbXkPlkAK6h8J0UC xcCd2JMOeeZn+vI6GRuIiWcfPUNS8x6QRUPIXxoJKh+m6fiMzanfFLZ+9Mj6uBULGiD3 FJ8wjhnpL3TSc5jzTD2oNdWh5lzEjVVprU81Ud3qGR5yq4by5MPLFN4wYVcN+JOeIGii grvw== 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=mj/L4mFKZ7U/BWkdPMirqFwjmIwmXr+R4JA9dQXjV+M=; b=IktRVwh+eXB0igq8OMOkjAevMLs5DIJncZNnI5L7shFYiL2BTjXovULKm5Xv+XYOFK gltSrqAB3dd3RmWCsse6wwCddrC11Ip3Ged5siUWxXTDOjobx4n5Ol1sHKDiWDjU8IwU uCzahfKvg739NzC/8UgZiRH9YuslB8N/jkOd473Z33D/3IlLCyj+WqEIj8E29t3DGAql LXjPkRzLncTj3pBd/yep/4ymzeeKFyGHEM0VJKUBWE19/f2wbXUynbSO/8x8YRC6/WnL /GpMCz++HCMsExnYX1CJrLS2rz0ZjPxm9MgXMy0LiJDIQ20YtLdadUpyjDM32lTi/Z7F JqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=RukWt6JX; dkim=pass header.i=@codeaurora.org header.s=default header.b=lwaSzwnb; 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 r59si3522421plb.247.2018.12.03.07.36.08; Mon, 03 Dec 2018 07:36:26 -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=RukWt6JX; dkim=pass header.i=@codeaurora.org header.s=default header.b=lwaSzwnb; 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 S1726662AbeLCPfT (ORCPT + 99 others); Mon, 3 Dec 2018 10:35:19 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:59220 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726560AbeLCPfT (ORCPT ); Mon, 3 Dec 2018 10:35:19 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 980D260246; Mon, 3 Dec 2018 15:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543851314; bh=6XJQSVpsjPMZ+YVQkAGC8l4Vwe9V+Eqo7n4zjnXMDic=; h=From:To:Cc:Subject:Date:From; b=RukWt6JXIjVsUid84bgtaHSZ2zOidXlRHElRF/Y+eprulQ1wPIMSdkDon7Xx86+Ec 1C/VxnFfqk4dy2shSqkZaDwOSqEvCikj09Fpg8SMhXM1mOia3nnnkjIURcQjwAA3CY bsXVmvZtEoVGjBhJkOaFaz8JEJjLfun55SQg4iGM= 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 266F3601C4; Mon, 3 Dec 2018 15:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543851313; bh=6XJQSVpsjPMZ+YVQkAGC8l4Vwe9V+Eqo7n4zjnXMDic=; h=From:To:Cc:Subject:Date:From; b=lwaSzwnbC57FfinUiMbZxmo7HLKyzXIJsdR85hhedqxfKrNmOFyb3WJ3rO1FStT32 jUmEmWuM7zK2g0QFOEQfdoxBhj/0u+4I2t3BpvoLsg38WXC7fko3TsZWCH/BZ81pWY cYumZZf/R7y/6jY8GsrbyhECoFlyE6N6aB417Ybk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 266F3601C4 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] clk: qcom: Fix MSM8998 resets Date: Mon, 3 Dec 2018 08:34:58 -0700 Message-Id: <1543851298-32320-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 --- 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..01cc555 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] = { 0x6c01c }, + [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.