spear.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2020 STMicroelectronics - All Rights Reserved
  4. *
  5. * Author: Lee Jones <[email protected]>
  6. */
  7. #ifndef __LINUX_CLK_SPEAR_H
  8. #define __LINUX_CLK_SPEAR_H
  9. #ifdef CONFIG_ARCH_SPEAR3XX
  10. void __init spear3xx_clk_init(void __iomem *misc_base,
  11. void __iomem *soc_config_base);
  12. #else
  13. static inline void __init spear3xx_clk_init(void __iomem *misc_base,
  14. void __iomem *soc_config_base) {}
  15. #endif
  16. #ifdef CONFIG_ARCH_SPEAR6XX
  17. void __init spear6xx_clk_init(void __iomem *misc_base);
  18. #else
  19. static inline void __init spear6xx_clk_init(void __iomem *misc_base) {}
  20. #endif
  21. #ifdef CONFIG_MACH_SPEAR1310
  22. void __init spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base);
  23. #else
  24. static inline void spear1310_clk_init(void __iomem *misc_base, void __iomem *ras_base) {}
  25. #endif
  26. #ifdef CONFIG_MACH_SPEAR1340
  27. void __init spear1340_clk_init(void __iomem *misc_base);
  28. #else
  29. static inline void spear1340_clk_init(void __iomem *misc_base) {}
  30. #endif
  31. #endif