From: Chris Morgan <macroalpha82@gmail.com>
To: u-boot@lists.denx.de
Cc: sjg@chromium.org, philipp.tomsich@vrull.eu,
kever.yang@rock-chips.com, lukma@denx.de, jon.lin@rock-chips.com,
Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH 1/2] rockchip: px30: add support for setting cpll clock
Date: Thu, 5 Aug 2021 11:48:47 -0500 [thread overview]
Message-ID: <20210805164848.21001-2-macroalpha82@gmail.com> (raw)
In-Reply-To: <20210805164848.21001-1-macroalpha82@gmail.com>
From: Chris Morgan <macromorgan@hotmail.com>
Starting with commit 92f1e9a4b31c ("clk: Detect failure to set
defaults") the clk driver for the PX30 for the Odroid Go Advance would
no longer probe correctly, because setting the cpll and gpu clocks are
not supported with the clk_px30 U-Boot driver. This adds support for
setting the cpll clock to the clk_px30 driver. Another patch will
update the U-Boot specific device-tree to remove the GPU clock which is
not used by U-Boot.
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
drivers/clk/rockchip/clk_px30.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c
index 6b746f4c65..89784f9aa1 100644
--- a/drivers/clk/rockchip/clk_px30.c
+++ b/drivers/clk/rockchip/clk_px30.c
@@ -1262,6 +1262,9 @@ static ulong px30_clk_set_rate(struct clk *clk, ulong rate)
case PLL_NPLL:
ret = px30_clk_set_pll_rate(priv, NPLL, rate);
break;
+ case PLL_CPLL:
+ ret = px30_clk_set_pll_rate(priv, CPLL, rate);
+ break;
case ARMCLK:
ret = px30_armclk_set_clk(priv, rate);
break;
--
2.25.1
next prev parent reply other threads:[~2021-08-05 16:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-05 16:48 [PATCH 0/2] rockchip: board: Fix bug for clk driver for OGA Chris Morgan
2021-08-05 16:48 ` Chris Morgan [this message]
2021-10-15 12:46 ` [PATCH 1/2] rockchip: px30: add support for setting cpll clock Kever Yang
2021-08-05 16:48 ` [PATCH 2/2] rockchip: board: remove SCLK_GPU from U-Boot DT Chris Morgan
2021-10-15 12:45 ` 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=20210805164848.21001-2-macroalpha82@gmail.com \
--to=macroalpha82@gmail.com \
--cc=jon.lin@rock-chips.com \
--cc=kever.yang@rock-chips.com \
--cc=lukma@denx.de \
--cc=macromorgan@hotmail.com \
--cc=philipp.tomsich@vrull.eu \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.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