Skip to content

Commit 163cd42

Browse files
petegriffinkrzk
authored andcommitted
clk: samsung: gs101: register cmu_misc clocks early
Update cmu_misc so it is registered early, as it contains the gate which clocks the Multi Core Timer (MCT). This clock is required early in boot, otherwise exynos_mct will fail obtaining the clock. Note this wasn't previously an issue as exynos_mct wasn't enabled. Signed-off-by: Peter Griffin <[email protected]> Reviewed-by: Sam Protsenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent d76c762 commit 163cd42

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

drivers/clk/samsung/clk-gs101.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,6 +2478,15 @@ static const struct samsung_cmu_info misc_cmu_info __initconst = {
24782478
.clk_name = "bus",
24792479
};
24802480

2481+
static void __init gs101_cmu_misc_init(struct device_node *np)
2482+
{
2483+
exynos_arm64_register_cmu(NULL, np, &misc_cmu_info);
2484+
}
2485+
2486+
/* Register CMU_MISC early, as it's needed for MCT timer */
2487+
CLK_OF_DECLARE(gs101_cmu_misc, "google,gs101-cmu-misc",
2488+
gs101_cmu_misc_init);
2489+
24812490
/* ---- platform_driver ----------------------------------------------------- */
24822491

24832492
static int __init gs101_cmu_probe(struct platform_device *pdev)
@@ -2495,9 +2504,6 @@ static const struct of_device_id gs101_cmu_of_match[] = {
24952504
{
24962505
.compatible = "google,gs101-cmu-apm",
24972506
.data = &apm_cmu_info,
2498-
}, {
2499-
.compatible = "google,gs101-cmu-misc",
2500-
.data = &misc_cmu_info,
25012507
}, {
25022508
},
25032509
};

0 commit comments

Comments
 (0)