projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f890a8
)
clk: rockchip: rk3568: Fix PLL rate setting for 78.75MHz
author
Alibek Omarov
<a1ba.omarov@gmail.com>
Wed, 14 Jun 2023 13:47:50 +0000
(16:47 +0300)
committer
Heiko Stuebner
<heiko@sntech.de>
Mon, 10 Jul 2023 10:11:26 +0000
(12:11 +0200)
PLL rate on RK356x is calculated through the simple formula:
((
24000000
/ _refdiv) * _fbdiv) / (_postdiv1 * _postdiv2)
The PLL rate setting for 78.75MHz seems to be copied from 96MHz
so this patch fixes it and configures it properly.
Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com>
Fixes: 842f4cb72639 ("clk: rockchip: Add more PLL rates for rk3568")
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Link:
https://lore.kernel.org/r/20230614134750.1056293-1-a1ba.omarov@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-rk3568.c
patch
|
blob
|
history
diff --git
a/drivers/clk/rockchip/clk-rk3568.c
b/drivers/clk/rockchip/clk-rk3568.c
index 5dae960af4ceeeecca25d7d08bdfd2ddc1033202..48b8d06c305c7db60dc8f00aba4db25a685538cc 100644
(file)
--- a/
drivers/clk/rockchip/clk-rk3568.c
+++ b/
drivers/clk/rockchip/clk-rk3568.c
@@
-82,7
+82,7
@@
static struct rockchip_pll_rate_table rk3568_pll_rates[] = {
RK3036_PLL_RATE(101000000, 1, 101, 6, 4, 1, 0),
RK3036_PLL_RATE(100000000, 1, 150, 6, 6, 1, 0),
RK3036_PLL_RATE(96000000, 1, 96, 6, 4, 1, 0),
- RK3036_PLL_RATE(78750000,
1, 96
, 6, 4, 1, 0),
+ RK3036_PLL_RATE(78750000,
4, 315
, 6, 4, 1, 0),
RK3036_PLL_RATE(74250000, 2, 99, 4, 4, 1, 0),
{ /* sentinel */ },
};