Commit | Line | Data |
---|---|---|
8551f3ff KK |
1 | /* |
2 | * Copyright (c) 2012 Samsung Electronics Co., Ltd. | |
3 | * http://www.samsung.com | |
4 | * | |
5 | * Common Header for S3C24XX SoCs | |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | */ | |
11 | ||
12 | #ifndef __ARCH_ARM_MACH_S3C24XX_COMMON_H | |
13 | #define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__ | |
14 | ||
e1a621da HS |
15 | #ifdef CONFIG_CPU_S3C2410 |
16 | ||
17 | extern int s3c2410_init(void); | |
18 | extern int s3c2410a_init(void); | |
19 | ||
20 | extern void s3c2410_map_io(void); | |
21 | ||
22 | extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |
23 | ||
24 | extern void s3c2410_init_clocks(int xtal); | |
25 | ||
26 | #else | |
27 | #define s3c2410_init_clocks NULL | |
28 | #define s3c2410_init_uarts NULL | |
29 | #define s3c2410_map_io NULL | |
30 | #define s3c2410_init NULL | |
31 | #define s3c2410a_init NULL | |
32 | #endif | |
33 | ||
34 | #ifdef CONFIG_CPU_S3C2412 | |
35 | ||
36 | extern int s3c2412_init(void); | |
37 | ||
38 | extern void s3c2412_map_io(void); | |
39 | ||
40 | extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |
41 | ||
42 | extern void s3c2412_init_clocks(int xtal); | |
43 | ||
44 | extern int s3c2412_baseclk_add(void); | |
45 | ||
46 | extern void s3c2412_restart(char mode, const char *cmd); | |
47 | #else | |
48 | #define s3c2412_init_clocks NULL | |
49 | #define s3c2412_init_uarts NULL | |
50 | #define s3c2412_map_io NULL | |
51 | #define s3c2412_init NULL | |
52 | #define s3c2412_restart NULL | |
53 | #endif | |
54 | ||
55 | #ifdef CONFIG_CPU_S3C2416 | |
56 | ||
57 | struct s3c2410_uartcfg; | |
58 | ||
59 | extern int s3c2416_init(void); | |
60 | ||
61 | extern void s3c2416_map_io(void); | |
62 | ||
63 | extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |
64 | ||
65 | extern void s3c2416_init_clocks(int xtal); | |
66 | ||
67 | extern int s3c2416_baseclk_add(void); | |
68 | ||
69 | extern void s3c2416_restart(char mode, const char *cmd); | |
70 | ||
71 | extern void s3c2416_init_irq(void); | |
72 | extern struct syscore_ops s3c2416_irq_syscore_ops; | |
73 | ||
74 | #else | |
75 | #define s3c2416_init_clocks NULL | |
76 | #define s3c2416_init_uarts NULL | |
77 | #define s3c2416_map_io NULL | |
78 | #define s3c2416_init NULL | |
79 | #define s3c2416_restart NULL | |
80 | #endif | |
81 | ||
82 | #if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) | |
83 | ||
84 | extern void s3c244x_map_io(void); | |
85 | ||
86 | extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |
87 | ||
88 | extern void s3c244x_init_clocks(int xtal); | |
89 | ||
90 | #else | |
91 | #define s3c244x_init_clocks NULL | |
92 | #define s3c244x_init_uarts NULL | |
93 | #endif | |
94 | ||
95 | #ifdef CONFIG_CPU_S3C2440 | |
96 | extern int s3c2440_init(void); | |
97 | ||
98 | extern void s3c2440_map_io(void); | |
99 | #else | |
100 | #define s3c2440_init NULL | |
101 | #define s3c2440_map_io NULL | |
102 | #endif | |
103 | ||
104 | #ifdef CONFIG_CPU_S3C2442 | |
105 | extern int s3c2442_init(void); | |
106 | ||
107 | extern void s3c2442_map_io(void); | |
108 | #else | |
109 | #define s3c2442_init NULL | |
110 | #define s3c2442_map_io NULL | |
111 | #endif | |
112 | ||
113 | #ifdef CONFIG_CPU_S3C2443 | |
114 | ||
115 | struct s3c2410_uartcfg; | |
116 | ||
117 | extern int s3c2443_init(void); | |
118 | ||
119 | extern void s3c2443_map_io(void); | |
120 | ||
121 | extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no); | |
122 | ||
123 | extern void s3c2443_init_clocks(int xtal); | |
124 | ||
125 | extern int s3c2443_baseclk_add(void); | |
126 | ||
127 | extern void s3c2443_restart(char mode, const char *cmd); | |
128 | ||
129 | extern void s3c2443_init_irq(void); | |
130 | #else | |
131 | #define s3c2443_init_clocks NULL | |
132 | #define s3c2443_init_uarts NULL | |
133 | #define s3c2443_map_io NULL | |
134 | #define s3c2443_init NULL | |
135 | #define s3c2443_restart NULL | |
136 | #endif | |
137 | ||
8551f3ff KK |
138 | void s3c2410_restart(char mode, const char *cmd); |
139 | void s3c244x_restart(char mode, const char *cmd); | |
140 | ||
d8fdec16 HS |
141 | extern struct syscore_ops s3c24xx_irq_syscore_ops; |
142 | ||
8551f3ff | 143 | #endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */ |