Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp727034ybg; Wed, 10 Jun 2020 12:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynEb4fHkXXPx33LxMQYFzm1wY+EQUZ/vLynX4NQYLXJWJd8FhudwxKeBY+r7dvIsU6Simb X-Received: by 2002:a17:906:19c8:: with SMTP id h8mr5028061ejd.512.1591815796707; Wed, 10 Jun 2020 12:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591815796; cv=none; d=google.com; s=arc-20160816; b=LK/XiIfpQyWg8dfSM4jCMlfv/FUAvVOk6ipYFpCl8Z6l+OAwBh3aJknDIJGrYGfY32 RgxHQyErAD9itngcNLiwFjN8YTt//pR/ZMrbN3ML4TJ3Qe3UhbL3cVDPEnP/YDK5LY/z R2yOaNa5bgBQ4x2S6xlt2zRW86HXutdgKRlUvb/hTQQAXKLFgKnT9AcyDUxufH0cYF2/ ZmY4y9EiWxGMcwmrvDcQID3WzlKKkc6XLYHggrJwZfC4zGozvxwWCt0VRqRuaLLyanTm qylTxoEBxFhNUxhexMAawXbErTnPt30g96EnOmPy2AvwuJ9kIUUNarKpJii04KVmIzxo E06A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=IQxPem+5VW7r05RFRPLuHDIBclW0bJ77HNTxrUxaSFI=; b=VaB24j5cPbP4VVbMawOA1x9ec+/Rvz5AyRSWs4JlISsCHjKGA1tN50finr06pN1doM UYggMllQTpkOWw3KOlAsPcsHaZRcW94PxtwqGOgV5Zwt1vEa/OO3p6eGqMIoJnzM/kl1 NdHM4NDvJBwcnMsHMDjMqAl+HG2f67Kw7boNQN9v4S+jD1CPfr9c6jglgfw2Mdt1QsGd aTtRUWNaBfxUPVe0NLABltiz8ZJKWK1M6jDZn4obpFYt1yFpYGrsadX54XhNGq5OomgF x876yXYkn88oAIoIMrpPgoW2fLbMmt2r6P4Wwvkx4YWGXplZgG5n7WAtbSwgR9Smozov +brg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Z785DNJK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si257794edw.72.2020.06.10.12.02.52; Wed, 10 Jun 2020 12:03:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Z785DNJK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729815AbgFJRS4 (ORCPT + 99 others); Wed, 10 Jun 2020 13:18:56 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:24547 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729788AbgFJRSx (ORCPT ); Wed, 10 Jun 2020 13:18:53 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591809532; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=IQxPem+5VW7r05RFRPLuHDIBclW0bJ77HNTxrUxaSFI=; b=Z785DNJKihcUW+Xml78QNw/ni99PFSS6dGqWm5B308c/qrPiCb5S/PCh3/+gnaNzeJXBJc2A r++sq/CBVQBK8kg0s3z4paDShpniOqKyd0HnfeVJj6oXTzbEG2HzbrqjEYr5BqpsfN4LninA LpkgJc5/fx4aM8QBWOgaOpTRC2Q= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 5ee115f16bebe35deb441ece (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 10 Jun 2020 17:18:41 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B27DCC433CA; Wed, 10 Jun 2020 17:18:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from tdas-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tdas) by smtp.codeaurora.org (Postfix) with ESMTPSA id 61CFAC433C6; Wed, 10 Jun 2020 17:18:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 61CFAC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=tdas@codeaurora.org From: Taniya Das To: Stephen Boyd , =?UTF-8?q?Michael=20Turquette=20=C2=A0?= Cc: David Brown , Rajendra Nayak , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , devicetree@vger.kernel.org, robh@kernel.org, robh+dt@kernel.org, Taniya Das Subject: [PATCH v3 3/4] clk: qcom: gcc: Add support for GCC LPASS clock for SC7180 Date: Wed, 10 Jun 2020 22:48:06 +0530 Message-Id: <1591809487-5588-4-git-send-email-tdas@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591809487-5588-1-git-send-email-tdas@codeaurora.org> References: <1591809487-5588-1-git-send-email-tdas@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the GCC lpass clock which is required to access the LPASS core clocks. Signed-off-by: Taniya Das --- drivers/clk/qcom/gcc-sc7180.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index ca4383e..8d3b161 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++ b/drivers/clk/qcom/gcc-sc7180.c @@ -2251,6 +2251,19 @@ static struct clk_branch gcc_mss_q6_memnoc_axi_clk = { }, }; +static struct clk_branch gcc_lpass_cfg_noc_sway_clk = { + .halt_reg = 0x47018, + .halt_check = BRANCH_HALT_DELAY, + .clkr = { + .enable_reg = 0x47018, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "gcc_lpass_cfg_noc_sway_clk", + .ops = &clk_branch2_ops, + }, + }, +}; + static struct gdsc ufs_phy_gdsc = { .gdscr = 0x77004, .pd = { @@ -2428,6 +2441,7 @@ static struct clk_regmap *gcc_sc7180_clocks[] = { [GCC_MSS_Q6_MEMNOC_AXI_CLK] = &gcc_mss_q6_memnoc_axi_clk.clkr, [GCC_MSS_SNOC_AXI_CLK] = &gcc_mss_snoc_axi_clk.clkr, [GCC_SEC_CTRL_CLK_SRC] = &gcc_sec_ctrl_clk_src.clkr, + [GCC_LPASS_CFG_NOC_SWAY_CLK] = &gcc_lpass_cfg_noc_sway_clk.clkr, }; static const struct qcom_reset_map gcc_sc7180_resets[] = { -- Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.