diff options
Diffstat (limited to 'arch/arm/mach-exynos/common.h')
-rw-r--r-- | arch/arm/mach-exynos/common.h | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 1ac49de0f398..677b5467df18 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h | |||
@@ -12,30 +12,44 @@ | |||
12 | #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H | 12 | #ifndef __ARCH_ARM_MACH_EXYNOS_COMMON_H |
13 | #define __ARCH_ARM_MACH_EXYNOS_COMMON_H | 13 | #define __ARCH_ARM_MACH_EXYNOS_COMMON_H |
14 | 14 | ||
15 | extern struct sys_timer exynos4_timer; | ||
16 | |||
15 | void exynos_init_io(struct map_desc *mach_desc, int size); | 17 | void exynos_init_io(struct map_desc *mach_desc, int size); |
16 | void exynos4_init_irq(void); | 18 | void exynos4_init_irq(void); |
19 | void exynos5_init_irq(void); | ||
20 | void exynos4_restart(char mode, const char *cmd); | ||
21 | void exynos5_restart(char mode, const char *cmd); | ||
17 | 22 | ||
23 | #ifdef CONFIG_ARCH_EXYNOS4 | ||
18 | void exynos4_register_clocks(void); | 24 | void exynos4_register_clocks(void); |
19 | void exynos4_setup_clocks(void); | 25 | void exynos4_setup_clocks(void); |
20 | 26 | ||
21 | void exynos4210_register_clocks(void); | 27 | #else |
22 | void exynos4212_register_clocks(void); | 28 | #define exynos4_register_clocks() |
29 | #define exynos4_setup_clocks() | ||
30 | #endif | ||
23 | 31 | ||
24 | void exynos4_restart(char mode, const char *cmd); | 32 | #ifdef CONFIG_ARCH_EXYNOS5 |
33 | void exynos5_register_clocks(void); | ||
34 | void exynos5_setup_clocks(void); | ||
25 | 35 | ||
26 | extern struct sys_timer exynos4_timer; | 36 | #else |
37 | #define exynos5_register_clocks() | ||
38 | #define exynos5_setup_clocks() | ||
39 | #endif | ||
40 | |||
41 | #ifdef CONFIG_CPU_EXYNOS4210 | ||
42 | void exynos4210_register_clocks(void); | ||
27 | 43 | ||
28 | #ifdef CONFIG_ARCH_EXYNOS | 44 | #else |
29 | extern int exynos_init(void); | 45 | #define exynos4210_register_clocks() |
30 | extern void exynos4_map_io(void); | 46 | #endif |
31 | extern void exynos4_init_clocks(int xtal); | 47 | |
32 | extern void exynos4_init_uarts(struct s3c2410_uartcfg *cfg, int no); | 48 | #ifdef CONFIG_SOC_EXYNOS4212 |
49 | void exynos4212_register_clocks(void); | ||
33 | 50 | ||
34 | #else | 51 | #else |
35 | #define exynos4_init_clocks NULL | 52 | #define exynos4212_register_clocks() |
36 | #define exynos4_init_uarts NULL | ||
37 | #define exynos4_map_io NULL | ||
38 | #define exynos_init NULL | ||
39 | #endif | 53 | #endif |
40 | 54 | ||
41 | #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */ | 55 | #endif /* __ARCH_ARM_MACH_EXYNOS_COMMON_H */ |