From patchwork Mon Jan 4 11:01:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 59123 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp5288999lbb; Mon, 4 Jan 2016 03:02:17 -0800 (PST) X-Received: by 10.98.73.71 with SMTP id w68mr115693189pfa.138.1451905337769; Mon, 04 Jan 2016 03:02:17 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ah10si46968466pad.118.2016.01.04.03.02.17; Mon, 04 Jan 2016 03:02:17 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751521AbcADLCQ (ORCPT + 6 others); Mon, 4 Jan 2016 06:02:16 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38196 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbcADLCP (ORCPT ); Mon, 4 Jan 2016 06:02:15 -0500 Received: by mail-wm0-f51.google.com with SMTP id b14so178906031wmb.1 for ; Mon, 04 Jan 2016 03:02:14 -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; bh=/Ow+Jw7AmUTkpzctUTxE+RYZv+tQPmLIjWkPW0el+d8=; b=eS91imnGQ97LKq4F90XoKOc05fzSczNTBxR2jFV7Uw5ggRoK2jNZkuwIma5DBOnUGK rO0sydufRKRDt7zo9JVGrM1jDQrN3vKR7hBTkC0h3UGWjhp9HFigOlLVsDC4M58ZkKZH clge5EIRTQcfKBe/JTRTt4jQJhk8P43pHNkDo= 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; bh=/Ow+Jw7AmUTkpzctUTxE+RYZv+tQPmLIjWkPW0el+d8=; b=KIKYvyWaTzT9j8HQ7v/YUzsiFEFk4qLNTPUKH9W4Tdl3SQu4prpFUKD/Ly32hC/+IZ WtaMpKz1Vr+RW8sHgA16AgMsN6kMztccpAeQ52KF3i9s+hcmoWM+Xj8NVhMhnYpE9S/h 735E35oUvHMFIb5V0gqwvDR4pT7oA1JENUFq2wdNs2IUQsw/+VjsaWVCJbhvQkC5lkkE PHfEnV1NIpGNkgbx1pIExBjbec+Sp/i4XwM5UjBtcb09B9qUaIeW8tuvgFsOPA26tPl3 2gNrmR+eTKgL7XK8KZ+4shXjEqNquXvc/su6OpUVy0mo/MyNJOoEbAvwaNkyeZPArsOB Y1uA== X-Gm-Message-State: ALoCoQnT+UYAwmkCCAGM0kCJBTH/mMeLE7FGbOSdXkDWSp6yslSjx5DCb4WtRqH5j0bxxooKIoNXZyAdEq9azmohGBuPoRAULg== X-Received: by 10.28.126.77 with SMTP id z74mr91810612wmc.3.1451905333951; Mon, 04 Jan 2016 03:02:13 -0800 (PST) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id df10sm70835060wjb.44.2016.01.04.03.02.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Jan 2016 03:02:13 -0800 (PST) From: Srinivas Kandagatla To: Stephen Boyd , linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org, Michael Turquette , linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v2] clk:gcc-msm8916: add missing mss_q6_bimc_axi clock Date: Mon, 4 Jan 2016 11:01:53 +0000 Message-Id: <1451905313-6461-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This clock is required for loading the qdsp firmware. Signed-off-by: Srinivas Kandagatla --- Changes since v1: fixed parent name as spotted by Georgi drivers/clk/qcom/gcc-msm8916.c | 18 ++++++++++++++++++ include/dt-bindings/clock/qcom,gcc-msm8916.h | 1 + 2 files changed, 19 insertions(+) -- 1.9.1 -- 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-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c index e643944..89fe930 100644 --- a/drivers/clk/qcom/gcc-msm8916.c +++ b/drivers/clk/qcom/gcc-msm8916.c @@ -2590,6 +2590,23 @@ static struct clk_branch gcc_mss_cfg_ahb_clk = { }, }; +static struct clk_branch gcc_mss_q6_bimc_axi_clk = { + .halt_reg = 0x49004, + .clkr = { + .enable_reg = 0x49004, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "gcc_mss_q6_bimc_axi_clk", + .parent_names = (const char *[]){ + "bimc_ddr_clk_src", + }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT, + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch gcc_oxili_ahb_clk = { .halt_reg = 0x59028, .clkr = { @@ -3228,6 +3245,7 @@ static struct clk_regmap *gcc_msm8916_clocks[] = { [GCC_ULTAUDIO_LPAIF_SEC_I2S_CLK] = &gcc_ultaudio_lpaif_sec_i2s_clk.clkr, [GCC_ULTAUDIO_LPAIF_AUX_I2S_CLK] = &gcc_ultaudio_lpaif_aux_i2s_clk.clkr, [GCC_CODEC_DIGCODEC_CLK] = &gcc_codec_digcodec_clk.clkr, + [GCC_MSS_Q6_BIMC_AXI_CLK] = &gcc_mss_q6_bimc_axi_clk.clkr, }; static struct gdsc *gcc_msm8916_gdscs[] = { diff --git a/include/dt-bindings/clock/qcom,gcc-msm8916.h b/include/dt-bindings/clock/qcom,gcc-msm8916.h index 257e2fb..28a27a4 100644 --- a/include/dt-bindings/clock/qcom,gcc-msm8916.h +++ b/include/dt-bindings/clock/qcom,gcc-msm8916.h @@ -174,6 +174,7 @@ #define GCC_ULTAUDIO_LPAIF_SEC_I2S_CLK 157 #define GCC_ULTAUDIO_LPAIF_AUX_I2S_CLK 158 #define GCC_CODEC_DIGCODEC_CLK 159 +#define GCC_MSS_Q6_BIMC_AXI_CLK 160 /* Indexes for GDSCs */ #define BIMC_GDSC 0