mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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 <peter.griffin@linaro.org> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Link: https://lore.kernel.org/r/20231222165355.1462740-3-peter.griffin@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
parent
d76c762e7e
commit
163cd42fc4
|
|
@ -2478,6 +2478,15 @@ static const struct samsung_cmu_info misc_cmu_info __initconst = {
|
|||
.clk_name = "bus",
|
||||
};
|
||||
|
||||
static void __init gs101_cmu_misc_init(struct device_node *np)
|
||||
{
|
||||
exynos_arm64_register_cmu(NULL, np, &misc_cmu_info);
|
||||
}
|
||||
|
||||
/* Register CMU_MISC early, as it's needed for MCT timer */
|
||||
CLK_OF_DECLARE(gs101_cmu_misc, "google,gs101-cmu-misc",
|
||||
gs101_cmu_misc_init);
|
||||
|
||||
/* ---- platform_driver ----------------------------------------------------- */
|
||||
|
||||
static int __init gs101_cmu_probe(struct platform_device *pdev)
|
||||
|
|
@ -2495,9 +2504,6 @@ static const struct of_device_id gs101_cmu_of_match[] = {
|
|||
{
|
||||
.compatible = "google,gs101-cmu-apm",
|
||||
.data = &apm_cmu_info,
|
||||
}, {
|
||||
.compatible = "google,gs101-cmu-misc",
|
||||
.data = &misc_cmu_info,
|
||||
}, {
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user