Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: samsung: exynos5410: do not define number of clocks in bindings

Number of clocks supported by Linux drivers might vary - sometimes we
add new clocks, not exposed previously. Therefore these numbers of
clocks should not be in the bindings, as that prevents changing them.

Define number of clocks per each clock controller inside the driver
directly.

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/r/20230808082738.122804-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+4 -1
+4 -1
drivers/clk/samsung/clk-exynos5410.c
··· 56 56 #define SRC_KFC 0x28200 57 57 #define DIV_KFC0 0x28500 58 58 59 + /* NOTE: Must be equal to the last clock ID increased by one */ 60 + #define CLKS_NR 512 61 + 59 62 /* list of PLLs */ 60 63 enum exynos5410_plls { 61 64 apll, cpll, epll, mpll, ··· 263 260 .nr_div_clks = ARRAY_SIZE(exynos5410_div_clks), 264 261 .gate_clks = exynos5410_gate_clks, 265 262 .nr_gate_clks = ARRAY_SIZE(exynos5410_gate_clks), 266 - .nr_clk_ids = CLK_NR_CLKS, 263 + .nr_clk_ids = CLKS_NR, 267 264 }; 268 265 269 266 /* register exynos5410 clocks */