From: Taniya Das <tdas@codeaurora.org>
To: Stephen Boyd <sboyd@kernel.org>,
Amit Nischal <anischal@codeaurora.org>,
Michael Turquette <mturquette@baylibre.com>
Cc: Andy Gross <andy.gross@linaro.org>,
David Brown <david.brown@linaro.org>,
Rajendra Nayak <rnayak@codeaurora.org>,
Odelu Kukatla <okukatla@codeaurora.org>,
linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/4] clk: qcom: Add graphics clock controller driver for SDM845
Date: Mon, 19 Nov 2018 17:02:47 +0530 [thread overview]
Message-ID: <d3fef1bb-f18b-cf01-bb21-678cec65eb1b@codeaurora.org> (raw)
In-Reply-To: <154139982787.88331.4428778114927340653@swboyd.mtv.corp.google.com>
Hello Stephen,
On 11/5/2018 12:07 PM, Stephen Boyd wrote:
> Quoting Amit Nischal (2018-08-12 23:33:07)
>> +
>> +static int gpu_cc_sdm845_probe(struct platform_device *pdev)
>> +{
>> + struct regmap *regmap;
>> + unsigned int value, mask;
>> + int ret;
>> +
>> + regmap = qcom_cc_map(pdev, &gpu_cc_sdm845_desc);
>> + if (IS_ERR(regmap))
>> + return PTR_ERR(regmap);
>> +
>> + clk_fabia_pll_configure(&gpu_cc_pll0, regmap, &gpu_cc_pll0_config);
>> + clk_fabia_pll_configure(&gpu_cc_pll1, regmap, &gpu_cc_pll1_config);
>> +
>> + /*
>> + * Configure gpu_cc_cx_gmu_clk with recommended
>> + * wakeup/sleep settings
>> + */
>> + mask = CX_GMU_CBCR_WAKE_MASK << CX_GMU_CBCR_WAKE_SHIFT;
>> + mask |= CX_GMU_CBCR_SLEEP_MASK << CX_GMU_CBCR_SLEEP_SHIFT;
>> + value = 0xf << CX_GMU_CBCR_WAKE_SHIFT | 0xf << CX_GMU_CBCR_SLEEP_SHIFT;
>> + regmap_update_bits(regmap, 0x1098, mask, value);
>> +
>> + ret = qcom_cc_really_probe(pdev, &gpu_cc_sdm845_desc, regmap);
>> + if (ret)
>> + return ret;
>> +
>> + /* Configure clk_dis_wait for gpu_cx_gdsc */
>> + regmap_update_bits(regmap, 0x106c, CLK_DIS_WAIT_MASK,
>> + 8 << CLK_DIS_WAIT_SHIFT);
>
> Is there a reason this is done after clks are registered? I'd think we
> would want to do it before.
>
Yes, it could be done before, would move it.
>> +
>> + /* Set supported range of frequencies for gfx3d clock */
>> + clk_hw_set_rate_range(&gpu_cc_gx_gfx3d_clk_src.clkr.hw, 180000000,
>> + 710000000);
>> +
>> + return 0;
>> +}
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.
--
next prev parent reply other threads:[~2018-11-19 11:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-13 6:33 [PATCH v3 0/4] Add QCOM graphics clock controller driver for SDM845 Amit Nischal
2018-08-13 6:33 ` [PATCH v3 1/4] clk: qcom: gdsc: Add support to enable/disable the clocks with GDSC Amit Nischal
2018-11-05 6:34 ` Stephen Boyd
2018-11-19 11:21 ` Taniya Das
2018-08-13 6:33 ` [PATCH v3 2/4] clk: qcom: Add clk_rcg2_gfx3d_ops for SDM845 Amit Nischal
2018-11-02 20:52 ` Stephen Boyd
2018-08-13 6:33 ` [PATCH v3 3/4] dt-bindings: clock: Introduce QCOM Graphics clock bindings Amit Nischal
2018-08-13 6:33 ` [PATCH v3 4/4] clk: qcom: Add graphics clock controller driver for SDM845 Amit Nischal
2018-11-05 6:37 ` Stephen Boyd
2018-11-19 11:32 ` Taniya Das [this message]
2018-11-19 20:51 ` Jordan Crouse
2018-11-19 20:45 ` [PATCH v3 0/4] Add QCOM " Jordan Crouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d3fef1bb-f18b-cf01-bb21-678cec65eb1b@codeaurora.org \
--to=tdas@codeaurora.org \
--cc=andy.gross@linaro.org \
--cc=anischal@codeaurora.org \
--cc=david.brown@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=okukatla@codeaurora.org \
--cc=rnayak@codeaurora.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).