samsung.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2020 Krzysztof Kozlowski <[email protected]>
  4. */
  5. #ifndef __LINUX_CLK_SAMSUNG_H_
  6. #define __LINUX_CLK_SAMSUNG_H_
  7. #include <linux/compiler_types.h>
  8. struct device_node;
  9. #ifdef CONFIG_S3C64XX_COMMON_CLK
  10. void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
  11. unsigned long xusbxti_f, bool s3c6400,
  12. void __iomem *base);
  13. #else
  14. static inline void s3c64xx_clk_init(struct device_node *np,
  15. unsigned long xtal_f,
  16. unsigned long xusbxti_f,
  17. bool s3c6400, void __iomem *base) { }
  18. #endif /* CONFIG_S3C64XX_COMMON_CLK */
  19. #ifdef CONFIG_S3C2410_COMMON_CLK
  20. void s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
  21. int current_soc,
  22. void __iomem *reg_base);
  23. #else
  24. static inline void s3c2410_common_clk_init(struct device_node *np,
  25. unsigned long xti_f,
  26. int current_soc,
  27. void __iomem *reg_base) { }
  28. #endif /* CONFIG_S3C2410_COMMON_CLK */
  29. #ifdef CONFIG_S3C2412_COMMON_CLK
  30. void s3c2412_common_clk_init(struct device_node *np, unsigned long xti_f,
  31. unsigned long ext_f, void __iomem *reg_base);
  32. #else
  33. static inline void s3c2412_common_clk_init(struct device_node *np,
  34. unsigned long xti_f,
  35. unsigned long ext_f,
  36. void __iomem *reg_base) { }
  37. #endif /* CONFIG_S3C2412_COMMON_CLK */
  38. #ifdef CONFIG_S3C2443_COMMON_CLK
  39. void s3c2443_common_clk_init(struct device_node *np, unsigned long xti_f,
  40. int current_soc,
  41. void __iomem *reg_base);
  42. #else
  43. static inline void s3c2443_common_clk_init(struct device_node *np,
  44. unsigned long xti_f,
  45. int current_soc,
  46. void __iomem *reg_base) { }
  47. #endif /* CONFIG_S3C2443_COMMON_CLK */
  48. #endif /* __LINUX_CLK_SAMSUNG_H_ */