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