1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2020 Krzysztof Kozlowski <krzk@kernel.org>
6 #ifndef __LINUX_CLK_SAMSUNG_H_
7 #define __LINUX_CLK_SAMSUNG_H_
9 #include <linux/compiler_types.h>
13 #ifdef CONFIG_ARCH_S3C64XX
14 void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
15 unsigned long xusbxti_f, bool s3c6400,
18 static inline void s3c64xx_clk_init(struct device_node *np,
20 unsigned long xusbxti_f,
21 bool s3c6400, void __iomem *base) { }
22 #endif /* CONFIG_ARCH_S3C64XX */
24 #ifdef CONFIG_S3C2410_COMMON_CLK
25 void s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
27 void __iomem *reg_base);
29 static inline void s3c2410_common_clk_init(struct device_node *np,
32 void __iomem *reg_base) { }
33 #endif /* CONFIG_S3C2410_COMMON_CLK */
35 #ifdef CONFIG_S3C2412_COMMON_CLK
36 void s3c2412_common_clk_init(struct device_node *np, unsigned long xti_f,
37 unsigned long ext_f, void __iomem *reg_base);
39 static inline void s3c2412_common_clk_init(struct device_node *np,
42 void __iomem *reg_base) { }
43 #endif /* CONFIG_S3C2412_COMMON_CLK */
45 #ifdef CONFIG_S3C2443_COMMON_CLK
46 void s3c2443_common_clk_init(struct device_node *np, unsigned long xti_f,
48 void __iomem *reg_base);
50 static inline void s3c2443_common_clk_init(struct device_node *np,
53 void __iomem *reg_base) { }
54 #endif /* CONFIG_S3C2443_COMMON_CLK */
56 #endif /* __LINUX_CLK_SAMSUNG_H_ */