public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
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 v2 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM
Date: Wed, 15 Mar 2023 19:34:13 +0100	[thread overview]
Message-ID: <d02eb0a7-201e-4463-0ea2-20d3245c65da@gmail.com> (raw)
In-Reply-To: <99944d4c-25d4-e05c-f5ea-7801f8e1253a@gmail.com>

The rk3288 pwm nodes 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>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # chromebook-jerry
---
 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


  parent reply	other threads:[~2023-03-15 18:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15 18:31 [PATCH v2 1/7] arm: dts: rockchip: rk3288: move io-domains nodes Johan Jonker
2023-03-15 18:33 ` [PATCH v2 2/7] arm: dts: rockchip: rk3288: partial sync grf and pmu nodes Johan Jonker
2023-03-21  3:14   ` Kever Yang
2023-03-15 18:33 ` [PATCH v2 3/7] video: rockchip: rk_vop: add rk3288-dp compare string Johan Jonker
2023-03-21  3:15   ` Kever Yang
2023-03-15 18:33 ` [PATCH v2 4/7] arm: dts: rockchip: rk3288: partial sync edp node Johan Jonker
2023-03-21  3:15   ` Kever Yang
2023-03-15 18:34 ` [PATCH v2 5/7] arm: dts: rockchip: rk3288: partial sync vop/lvds/mipi/hdmi nodes Johan Jonker
2023-03-21  3:15   ` Kever Yang
2023-03-15 18:34 ` Johan Jonker [this message]
2023-03-21  3:15   ` [PATCH v2 6/7] clk: rockchip: clk_rk3288: add PCLK_RKPWM Kever Yang
2023-03-15 18:34 ` [PATCH v2 7/7] arm: dts: rockchip: rk3288: partial sync pwm nodes Johan Jonker
2023-03-21  3:15   ` Kever Yang
2023-03-21  3:14 ` [PATCH v2 1/7] arm: dts: rockchip: rk3288: move io-domains nodes Kever Yang

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=d02eb0a7-201e-4463-0ea2-20d3245c65da@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