From patchwork Sat Dec 12 15:39:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 58315 Delivered-To: patch@linaro.org Received: by 10.112.73.68 with SMTP id j4csp527399lbv; Sat, 12 Dec 2015 07:39:16 -0800 (PST) X-Received: by 10.98.1.213 with SMTP id 204mr23494163pfb.128.1449934756887; Sat, 12 Dec 2015 07:39:16 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si1074439pfi.55.2015.12.12.07.39.16; Sat, 12 Dec 2015 07:39:16 -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.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbbLLPjP (ORCPT + 6 others); Sat, 12 Dec 2015 10:39:15 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:36762 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbbLLPjO (ORCPT ); Sat, 12 Dec 2015 10:39:14 -0500 Received: by mail-wm0-f42.google.com with SMTP id n186so67223142wmn.1 for ; Sat, 12 Dec 2015 07:39:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=dR2chCvpdpsRZ+dK7sJwibCNgUGa8yTfAq5OLEbWmhY=; b=h4T3McI+4h4dGH/oc3uhhLNYP7a/FDKy6Q6QenKEureoL8cxvKQwoxVfiNpzY3H8uN AVIDueBNZGR6rmo3gjxy2FhaXiLguqtpDVDHXCjMetH5scTEb6BConOU57t+CfrELZov +nGyDVOhHbJF5sBubW0KruV2cPH/Cqc4g72/sZp3mj3XKWoAGvnIsTtjGVFNlyAT/iQZ +eAlUz8cEuK/C7OVD7UkKbsZMwVrcCj90I7vj1OqVq5bjTzrZtTz7Tcb2tMajkWUr38M faTlyFlmt/CAR9NAaB65AYpngNlNXxJAWMOMNIy41QsP2UsbZKQfxfnPljp/d0cCySaj iRcA== 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=dR2chCvpdpsRZ+dK7sJwibCNgUGa8yTfAq5OLEbWmhY=; b=AS7LrNi/ogdfFf/aFktR4SPVqfFh0DxSj6pdFktL8MEZrHEUQb9zN2puXtNpPNgriK aea1TQrgrP0vF07I7mlcfVAlEMHN/eOryI3xAAj5bQTxthFc67MKM4Bm1I4clTotPynv XNPilUVMeAqH2JVE3pWajK/1Cy1vNh7iNvrvNv2S/vvpw/IFaJLO322FE7oNWOFwzALl pwzavHMkeInkZa93872pO7i81d3SpBlopM0lnRwVZu0hH250N9OB2/z84w24F5FTQtYb KsgXJuw9KzSVuFWq8VJvrwYmOQPzADpNoSpqoBBnUqm52o/QhaQweNhpSSgZVmU2BUXa QYaQ== X-Gm-Message-State: ALoCoQkBtehldV7KDrMwe3wn7Fk/twIs0re6fFw8U0tmRy9hvcSb6Ln79XugoddEvyawmYdAeOchxMkluB2LL3cFHiwdQN7VUQ== X-Received: by 10.194.172.2 with SMTP id ay2mr26451736wjc.137.1449934753317; Sat, 12 Dec 2015 07:39: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 u185sm8064566wmu.19.2015.12.12.07.39.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Dec 2015 07:39:12 -0800 (PST) From: Srinivas Kandagatla To: linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Turquette , georgi.djakov@linaro.org, Srinivas Kandagatla Subject: [PATCH] clk:gcc-msm8916: add missing mss_q6_bimc_axi clock Date: Sat, 12 Dec 2015 15:39:09 +0000 Message-Id: <1449934749-26223-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 --- 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 e3bf09d..1ec5a27 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 *[]){ + "pcnoc_bfdcd_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 = { @@ -3227,6 +3244,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