0001
0002
0003
0004
0005
0006 #ifndef __LINUX_CLK_SAMSUNG_H_
0007 #define __LINUX_CLK_SAMSUNG_H_
0008
0009 #include <linux/compiler_types.h>
0010
0011 struct device_node;
0012
0013 #ifdef CONFIG_S3C64XX_COMMON_CLK
0014 void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
0015 unsigned long xusbxti_f, bool s3c6400,
0016 void __iomem *base);
0017 #else
0018 static inline void s3c64xx_clk_init(struct device_node *np,
0019 unsigned long xtal_f,
0020 unsigned long xusbxti_f,
0021 bool s3c6400, void __iomem *base) { }
0022 #endif
0023
0024 #ifdef CONFIG_S3C2410_COMMON_CLK
0025 void s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
0026 int current_soc,
0027 void __iomem *reg_base);
0028 #else
0029 static inline void s3c2410_common_clk_init(struct device_node *np,
0030 unsigned long xti_f,
0031 int current_soc,
0032 void __iomem *reg_base) { }
0033 #endif
0034
0035 #ifdef CONFIG_S3C2412_COMMON_CLK
0036 void s3c2412_common_clk_init(struct device_node *np, unsigned long xti_f,
0037 unsigned long ext_f, void __iomem *reg_base);
0038 #else
0039 static inline void s3c2412_common_clk_init(struct device_node *np,
0040 unsigned long xti_f,
0041 unsigned long ext_f,
0042 void __iomem *reg_base) { }
0043 #endif
0044
0045 #ifdef CONFIG_S3C2443_COMMON_CLK
0046 void s3c2443_common_clk_init(struct device_node *np, unsigned long xti_f,
0047 int current_soc,
0048 void __iomem *reg_base);
0049 #else
0050 static inline void s3c2443_common_clk_init(struct device_node *np,
0051 unsigned long xti_f,
0052 int current_soc,
0053 void __iomem *reg_base) { }
0054 #endif
0055
0056 #endif