hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/samsung/clk-exynos3250.c
....@@ -1,18 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 *
85 * Common Clock Framework support for Exynos3250 SoC.
96 */
107
118 #include <linux/clk-provider.h>
9
+#include <linux/io.h>
1210 #include <linux/of.h>
1311 #include <linux/of_address.h>
1412 #include <linux/platform_device.h>
15
-#include <linux/syscore_ops.h>
1613
1714 #include <dt-bindings/clock/exynos3250.h>
1815
....@@ -811,14 +808,16 @@
811808 static void __init exynos3250_cmu_init(struct device_node *np)
812809 {
813810 struct samsung_clk_provider *ctx;
811
+ struct clk_hw **hws;
814812
815813 ctx = samsung_cmu_register_one(np, &cmu_info);
816814 if (!ctx)
817815 return;
818816
817
+ hws = ctx->clk_data.hws;
819818 exynos_register_cpu_clock(ctx, CLK_ARM_CLK, "armclk",
820
- mout_core_p[0], mout_core_p[1], 0x14200,
821
- e3250_armclk_d, ARRAY_SIZE(e3250_armclk_d),
819
+ hws[CLK_MOUT_APLL], hws[CLK_MOUT_MPLL_USER_C],
820
+ 0x14200, e3250_armclk_d, ARRAY_SIZE(e3250_armclk_d),
822821 CLK_CPU_HAS_DIV1);
823822
824823 exynos3_core_down_clock(ctx->reg_base);