From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org,
mturquette@baylibre.com, sboyd@kernel.org,
bjorn.andersson@linaro.org, robh+dt@kernel.org,
agross@kernel.org
Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca,
dikshita@codeaurora.org, dmitry.baryshkov@linaro.org,
stanimir.varbanov@linaro.org
Subject: [PATCH 3/4] clk: qcom: videocc: Add sm8250 VIDEO_CC_MVS0_CLK
Date: Wed, 3 Feb 2021 11:54:55 +0000 [thread overview]
Message-ID: <20210203115456.1072975-4-bryan.odonoghue@linaro.org> (raw)
In-Reply-To: <20210203115456.1072975-1-bryan.odonoghue@linaro.org>
This patch adds the missing video_cc_mvs0_div_clk entry to
videocc-sm8250 replicating in upstream the explicit entry for this clock in
downstream.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
drivers/clk/qcom/videocc-sm8250.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/clk/qcom/videocc-sm8250.c b/drivers/clk/qcom/videocc-sm8250.c
index cc84963ced40..3ade240bd49c 100644
--- a/drivers/clk/qcom/videocc-sm8250.c
+++ b/drivers/clk/qcom/videocc-sm8250.c
@@ -217,6 +217,24 @@ static struct clk_branch video_cc_mvs0c_clk = {
},
};
+static struct clk_branch video_cc_mvs0_clk = {
+ .halt_reg = 0xd34,
+ .halt_check = BRANCH_HALT_VOTED,
+ .clkr = {
+ .enable_reg = 0xd34,
+ .enable_mask = BIT(0),
+ .hw.init = &(struct clk_init_data){
+ .name = "video_cc_mvs0_clk",
+ .parent_data = &(const struct clk_parent_data){
+ .hw = &video_cc_mvs0_div_clk_src.clkr.hw,
+ },
+ .num_parents = 1,
+ .flags = CLK_SET_RATE_PARENT,
+ .ops = &clk_branch2_ops,
+ },
+ },
+};
+
static struct clk_branch video_cc_mvs1_div2_clk = {
.halt_reg = 0xdf4,
.halt_check = BRANCH_HALT_VOTED,
@@ -290,6 +308,7 @@ static struct gdsc mvs1_gdsc = {
};
static struct clk_regmap *video_cc_sm8250_clocks[] = {
+ [VIDEO_CC_MVS0_CLK] = &video_cc_mvs0_clk.clkr,
[VIDEO_CC_MVS0_CLK_SRC] = &video_cc_mvs0_clk_src.clkr,
[VIDEO_CC_MVS0_DIV_CLK_SRC] = &video_cc_mvs0_div_clk_src.clkr,
[VIDEO_CC_MVS0C_CLK] = &video_cc_mvs0c_clk.clkr,
--
2.29.2
next prev parent reply other threads:[~2021-02-03 11:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 11:54 [RESEND PATCH 0/4] Fixup clocks for venus on sm8250 Bryan O'Donoghue
2021-02-03 11:54 ` [PATCH 1/4] dt-bindings: clock: Add missing SM8250 videoc clock indices Bryan O'Donoghue
2021-02-03 11:54 ` [PATCH 2/4] clk: qcom: videocc: Add sm8250 VIDEO_CC_MVS0_DIV_CLK_SRC Bryan O'Donoghue
2021-02-03 11:54 ` Bryan O'Donoghue [this message]
2021-02-03 11:54 ` [PATCH 4/4] clk: qcom: videocc: Add gdsc mmcx-reg supply hook Bryan O'Donoghue
2021-02-03 14:16 ` [RESEND PATCH 0/4] Fixup clocks for venus on sm8250 Dmitry Baryshkov
2021-02-03 14:25 ` Dmitry Baryshkov
2021-02-03 14:57 ` Bryan O'Donoghue
2021-02-04 10:50 ` Dmitry Baryshkov
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=20210203115456.1072975-4-bryan.odonoghue@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=dikshita@codeaurora.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=jonathan@marek.ca \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=stanimir.varbanov@linaro.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).