From: Johan Jonker <jbx6244@gmail.com>
To: kever.yang@rock-chips.com
Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, w.egorov@phytec.de,
hl@rock-chips.com, jernej.skrabec@gmail.com, lukma@denx.de,
seanga2@gmail.com, agust@denx.de, u-boot@lists.denx.de
Subject: [PATCH v1 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM
Date: Tue, 14 Mar 2023 19:16:36 +0100 [thread overview]
Message-ID: <1fc27abf-23e6-96be-6595-f11ea00a1323@gmail.com> (raw)
In-Reply-To: <f52b16ea-ad7e-efaf-b8bd-e2a6307bf241@gmail.com>
The rk3288 pwm node synced from Linux make use of PCLK_RKPWM
instead of PCLK_PWM. They have the same pclk_cpu parent,
so add PCLK_RKPWM to rk3288_clk_get_rate().
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
drivers/clk/rockchip/clk_rk3288.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c
index 3b29992c..ef744c06 100644
--- a/drivers/clk/rockchip/clk_rk3288.c
+++ b/drivers/clk/rockchip/clk_rk3288.c
@@ -778,6 +778,7 @@ static ulong rk3288_clk_get_rate(struct clk *clk)
case PCLK_I2C5:
return gclk_rate;
case PCLK_PWM:
+ case PCLK_RKPWM:
return PD_BUS_PCLK_HZ;
case SCLK_SARADC:
new_rate = rockchip_saradc_get_clk(priv->cru);
--
2.20.1
next prev parent reply other threads:[~2023-03-14 18:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 18:13 [PATCH v1 1/7] arm: dts: rockchip: rk3288: move io-domains nodes Johan Jonker
2023-03-14 18:15 ` [PATCH v1 2/7] arm: dts: rockchip: rk3288: partial sync grf and pmu nodes Johan Jonker
2023-03-15 14:05 ` Simon Glass
2023-03-14 18:16 ` [PATCH v1 3/7] video: rockchip: rk_vop: add rk3288-dp compare string Johan Jonker
2023-03-15 14:05 ` Simon Glass
2023-03-14 18:16 ` [PATCH v1 4/7] arm: dts: rockchip: rk3288: partial sync edp node Johan Jonker
2023-03-15 14:05 ` Simon Glass
2023-03-14 18:16 ` [PATCH v1 5/7] arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodes Johan Jonker
2023-03-15 14:05 ` Simon Glass
2023-03-14 18:16 ` Johan Jonker [this message]
2023-03-15 14:05 ` [PATCH v1 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM Simon Glass
2023-03-14 18:16 ` [PATCH v1 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes Johan Jonker
2023-03-15 14:05 ` Simon Glass
2023-03-15 16:37 ` Johan Jonker
2023-03-15 12:43 ` [PATCH v1 1/7] arm: dts: rockchip: rk3288: move io-domains nodes John Keeping
2023-03-15 14:05 ` Simon Glass
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=1fc27abf-23e6-96be-6595-f11ea00a1323@gmail.com \
--to=jbx6244@gmail.com \
--cc=agust@denx.de \
--cc=hl@rock-chips.com \
--cc=jernej.skrabec@gmail.com \
--cc=kever.yang@rock-chips.com \
--cc=lukma@denx.de \
--cc=philipp.tomsich@vrull.eu \
--cc=seanga2@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=w.egorov@phytec.de \
/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