Skip to content

Commit a794e78

Browse files
ivoszbgkrzk
authored andcommitted
clk: samsung: clk-pll: Add support for pll_{1051x,1052x}
These plls are found in the Exynos8895 SoC: - pll1051x: Integer PLL with middle frequency - pll1052x: Integer PLL with low frequency The PLLs are similar enough to pll_0822x, so the same code can handle all. Locktime for 1051x, 1052x is 150 - the same as the pll_0822x lock factor. MDIV, SDIV, PDIV masks and bit shifts are also the same as 0822x. When defining a PLL, the "con" parameter should be set to CON0 register, like this: PLL(pll_1051x, CLK_FOUT_SHARED0_PLL, "fout_shared0_pll", "oscclk", PLL_LOCKTIME_PLL_SHARED0, PLL_CON0_PLL_SHARED0, pll_shared0_rate_table), Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com> Link: https://lore.kernel.org/r/20241023090136.537395-3-ivo.ivanov.ivanov1@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 807b1a3 commit a794e78

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/clk/samsung/clk-pll.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,8 @@ static void __init _samsung_clk_register_pll(struct samsung_clk_provider *ctx,
13701370
break;
13711371
case pll_1417x:
13721372
case pll_1418x:
1373+
case pll_1051x:
1374+
case pll_1052x:
13731375
case pll_0818x:
13741376
case pll_0822x:
13751377
case pll_0516x:

drivers/clk/samsung/clk-pll.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ enum samsung_pll_type {
4343
pll_0517x,
4444
pll_0518x,
4545
pll_531x,
46+
pll_1051x,
47+
pll_1052x,
4648
};
4749

4850
#define PLL_RATE(_fin, _m, _p, _s, _k, _ks) \

0 commit comments

Comments
 (0)