From patchwork Mon Jun 12 09:41:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 103609 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp107297qgd; Mon, 12 Jun 2017 02:41:47 -0700 (PDT) X-Received: by 10.99.186.29 with SMTP id k29mr52979241pgf.219.1497260507649; Mon, 12 Jun 2017 02:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497260507; cv=none; d=google.com; s=arc-20160816; b=UUDTgkZ/7AlkDGWmDG27mbIMUDe7+eE1ULTiPyKx8mms+AU6jwDtPLbTr1T8BgHv2Q T1UrMEgyoruDtuE3vtaW9PvxKHvWTzR59E6UrTSvaHA40C8FRhXqp9lqgQNo1RqmjDAW l0jrtOjstFB4W9VPvoAH/sJ68CT3OR9N7+2dkpCdPe1XK86eOgypRsos0zN39BC70Ask KERHxzgHu0WkxR7Kqe292C7xiCuvbLZbyR+e94/T3KddGANdDoj/u4sKi7ZVcZvbUsoj mxSwCe2lmn2YNysTZ1JluiETjLFv9te/K4xzHKYVX1xYNSYCSiD2WZVMwajhvk5v+2jl UEuA== 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 :dkim-signature:arc-authentication-results; bh=mfAONwygXD8Ud0cInL+ckMBc7DtwimZruTfCRNmvJ1c=; b=QYkW0PpftI1O4WABD8JWHBlr2LQJcIwi/DJERBNAMtxN8z1OFAS+WNwfoN/R7ZuX8F jzsU3Q9EhXN07LBV6akTAKF8DopSY0dv9HFsTUNTSbK8M0vC6EEhBHhCTuEuSvqH8JiF Wu+4tnpQZCqk454NJZOgEMt/y6mTh2CA/2qjAx3Dfe6QchFQR89cl8/Y/wYYWle9EsDh KV6VbQwSvn+SS7GDxT0Ki3916M+OGKmns79a2QSYYw+xS3zXymq0O96ajLbsuGVESOn9 gRnuTC/kc+D7vc41ATZEiLKO5yT6rakakthMRyi50FIjlwOBKjRpcN+vb29Rn4uJwfzC Syuw== ARC-Authentication-Results: i=1; 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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si6656956pln.468.2017.06.12.02.41.47; Mon, 12 Jun 2017 02:41:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752129AbdFLJlo (ORCPT + 10 others); Mon, 12 Jun 2017 05:41:44 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:36721 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752012AbdFLJln (ORCPT ); Mon, 12 Jun 2017 05:41:43 -0400 Received: by mail-wr0-f180.google.com with SMTP id v111so89918464wrc.3 for ; Mon, 12 Jun 2017 02:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Wh+h7tP7TQQ5tQB3mI8l+Zw8H9ztbts/HHvHacORewc=; b=cutYozHCbalyBe6k5Y42ZjtQJKI3yoFBIApDHe+3Y9wKBeyzFTGfs2T+lrZts+bi/T 0lFnTtYcF333NYKCsX/Y6XjvdubE2knH/1DADqh4kdeuvCgE1I0RDXhRdAPvgFpfr6hl Tl0p8iBhEARuMQf6uvsb4szZQoACDMibFXLhc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Wh+h7tP7TQQ5tQB3mI8l+Zw8H9ztbts/HHvHacORewc=; b=QZj4vO+6oNuWl2gOD2GkRQVRP6UagMhHQmOB+cChQvPIp4D5qFp9uf90Ijp1j+ZF// gVkjluXbugihrM8lSJw3OeiuoqoIzElKixo842fdx96GLJhvCGHdKN/LTIxviU41HMpo wo/A75NgK5jVUyWSPxn1Ddbl4KCkfPus+N4CMg7VLQzijsbEh/sbydr+yxAubewgZNMe 4oqsXcZWVYWKAkd+kqg3djY3pNG5qQ2iro0LH2GLtNhzEWMKDgVrjfUSV8gyDnNHNswE EGGwds9UtoPbSzsI5aioXYGEGOeXhV5aSUPSohtadhXoXz3Ctl61mqHM2Q92oJa+e8Tb IVKQ== X-Gm-Message-State: AKS2vOyyW6lVwL/te0cfu9PasuhYCj/YNHkkxBoR5U1S+UGErWGC9P4l xQFChqmTm125yF3r X-Received: by 10.28.203.65 with SMTP id b62mr7109209wmg.9.1497260501922; Mon, 12 Jun 2017 02:41:41 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id m191sm11042236wmg.30.2017.06.12.02.41.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 02:41:41 -0700 (PDT) From: Srinivas Kandagatla To: Stephen Boyd , linux-clk@vger.kernel.org Cc: Andy Gross , Michael Turquette , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] clk: gcc-msm8996: Add missing lpass smmu clks Date: Mon, 12 Jun 2017 10:41:37 +0100 Message-Id: <20170612094137.6821-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds missing LPASS smmu clks which are required by the audio driver. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8996.c | 26 ++++++++++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-msm8996.h | 2 ++ 2 files changed, 28 insertions(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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/clk/qcom/gcc-msm8996.c b/drivers/clk/qcom/gcc-msm8996.c index 56e0a295c74e..6290ce551505 100644 --- a/drivers/clk/qcom/gcc-msm8996.c +++ b/drivers/clk/qcom/gcc-msm8996.c @@ -2644,6 +2644,30 @@ static struct clk_fixed_factor ufs_rx_cfg_clk_src = { }, }; +static struct clk_branch gcc_hlos1_vote_lpass_core_smmu_clk = { + .halt_reg = 0x7d010, + .clkr = { + .enable_reg = 0x7d010, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "hlos1_vote_lpass_core_smmu_clk", + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_hlos1_vote_lpass_adsp_smmu_clk = { + .halt_reg = 0x7d014, + .clkr = { + .enable_reg = 0x7d014, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "hlos1_vote_lpass_adsp_smmu_clk", + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch gcc_ufs_rx_cfg_clk = { .halt_reg = 0x75014, .clkr = { @@ -3217,6 +3241,8 @@ static struct clk_regmap *gcc_msm8996_clocks[] = { [GCC_UFS_AHB_CLK] = &gcc_ufs_ahb_clk.clkr, [GCC_UFS_TX_CFG_CLK] = &gcc_ufs_tx_cfg_clk.clkr, [GCC_UFS_RX_CFG_CLK] = &gcc_ufs_rx_cfg_clk.clkr, + [GCC_HLOS1_VOTE_LPASS_CORE_SMMU_CLK] = &gcc_hlos1_vote_lpass_core_smmu_clk.clkr, + [GCC_HLOS1_VOTE_LPASS_ADSP_SMMU_CLK] = &gcc_hlos1_vote_lpass_adsp_smmu_clk.clkr, [GCC_UFS_TX_SYMBOL_0_CLK] = &gcc_ufs_tx_symbol_0_clk.clkr, [GCC_UFS_RX_SYMBOL_0_CLK] = &gcc_ufs_rx_symbol_0_clk.clkr, [GCC_UFS_RX_SYMBOL_1_CLK] = &gcc_ufs_rx_symbol_1_clk.clkr, diff --git a/include/dt-bindings/clock/qcom,gcc-msm8996.h b/include/dt-bindings/clock/qcom,gcc-msm8996.h index 1847e130f5a0..4df1898d71b2 100644 --- a/include/dt-bindings/clock/qcom,gcc-msm8996.h +++ b/include/dt-bindings/clock/qcom,gcc-msm8996.h @@ -229,6 +229,8 @@ #define GCC_PCIE_CLKREF_CLK 216 #define GCC_RX2_USB2_CLKREF_CLK 217 #define GCC_RX1_USB2_CLKREF_CLK 218 +#define GCC_HLOS1_VOTE_LPASS_CORE_SMMU_CLK 219 +#define GCC_HLOS1_VOTE_LPASS_ADSP_SMMU_CLK 220 #define GCC_SYSTEM_NOC_BCR 0 #define GCC_CONFIG_NOC_BCR 1