forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/samsung/clk-cpu.h
....@@ -1,9 +1,6 @@
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 all PLL's in Samsung platforms
96 */
....@@ -49,7 +46,7 @@
4946 */
5047 struct exynos_cpuclk {
5148 struct clk_hw hw;
52
- struct clk_hw *alt_parent;
49
+ const struct clk_hw *alt_parent;
5350 void __iomem *ctrl_base;
5451 spinlock_t *lock;
5552 const struct exynos_cpuclk_cfg_data *cfg;
....@@ -65,9 +62,9 @@
6562 #define CLK_CPU_HAS_E5433_REGS_LAYOUT (1 << 2)
6663 };
6764
68
-extern int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
65
+int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
6966 unsigned int lookup_id, const char *name,
70
- const char *parent, const char *alt_parent,
67
+ const struct clk_hw *parent, const struct clk_hw *alt_parent,
7168 unsigned long offset,
7269 const struct exynos_cpuclk_cfg_data *cfg,
7370 unsigned long num_cfgs, unsigned long flags);