Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp221070ybh; Tue, 14 Jul 2020 23:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9x21PvlWwov9E8IB/pl++Thq5FHeUcXQ9OhXnyZwq6tB03Np1xMnmOo2c0XGpNHXyMHyT X-Received: by 2002:aa7:c80d:: with SMTP id a13mr8199266edt.327.1594795202215; Tue, 14 Jul 2020 23:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594795202; cv=none; d=google.com; s=arc-20160816; b=Jsi5OEWI4ts8xXQdUhJntKKpazeYyEIaGhxZP0Z3hgZ4mBhq9GreHmVE5CAhyX34KN tJzEWWhsM7RVvVCgk/WuzwsPDYBpTePmA8DCgcq8l1mL22EO6tisnhSK3dZmP2cNwuIt ymDgSSuE8U4fl4ufSLXOo4XQhup8PbxtH7KJ27M8IqwkIRontcsj1asjGqyA0KK9A5tG MIROy27KSlwaxZFm8fGShDethLH8F1f2FI0SQpLVr/sLY9/+JTJIvfC2oWvOKvdjfDY1 iqnJlqB6FmPEn3ZcBaiBSmQDo6yC2Q8ZAPJ8aa+RFYDuCJ9gxObXNArCoKBx3Ur06Uww 5J3Q== 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=jUzSezGWdlE4AUlewZEcIiHiqfCiCDSjOPbArgqrI8GmXWRXsy/pqk+6GT64kShG01 Eym5ZEY660DT2SDGqyA38L8cry80kt8pYlqL3F33unll7dznLkOMx5Njf6I6FhO2CCK8 XAyfN5MN98Gzq3Eg1yx90PBupwxIATTIH6pFUxuZbC1hhVVlOTpewx1DK6DH5Oj6kJ5w iL/K0dCLeyZs/kz+P7nrGdbiSD9XcKCH+pXabxMnrDyhtDpULOljDyC/Mal+x2+zRvKa 1hlfqJKvO2UyuCxC6zCOhnPFAcl8BSF/1xms5ROV0pukaM1skww97G3dm13kqhkqLsZi BdUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=XmwNx8ib; 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 u10si616494ejg.30.2020.07.14.23.39.38; Tue, 14 Jul 2020 23:40:02 -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=XmwNx8ib; 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 S1728867AbgGOGhc (ORCPT + 99 others); Wed, 15 Jul 2020 02:37:32 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:20062 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728806AbgGOGha (ORCPT ); Wed, 15 Jul 2020 02:37:30 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1594795050; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=IQxPem+5VW7r05RFRPLuHDIBclW0bJ77HNTxrUxaSFI=; b=XmwNx8ib6ZkMi4FW0QLyYz+Vq89+FFJMaPozldkdYXMg2pP5L5gJMleivbmh0uYTmkPXX6qF YngRUZP53P0vgCVNrvfQkl05BZa0fVCYC1O/kXk19i3NwqV0vQh5XzDNE9BggF3rUGDxgf2O IFjOi5zGA0q+vFwkTbJS5J4NIvw= X-Mailgun-Sending-Ip: 69.72.43.7 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-east-1.postgun.com with SMTP id 5f0ea427e3bee1251089f7fa (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 15 Jul 2020 06:37:27 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 00A42C433C8; Wed, 15 Jul 2020 06:37:26 +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, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from tdas-linux.qualcomm.com (unknown [202.46.22.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 DE90DC433CB; Wed, 15 Jul 2020 06:37:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DE90DC433CB 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 v4 3/4] clk: qcom: gcc: Add support for GCC LPASS clock for SC7180 Date: Wed, 15 Jul 2020 12:06:49 +0530 Message-Id: <1594795010-9074-4-git-send-email-tdas@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594795010-9074-1-git-send-email-tdas@codeaurora.org> References: <1594795010-9074-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.