aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2013-02-08 13:37:13 -0500
committerKukjin Kim <kgene.kim@samsung.com>2013-03-04 20:42:48 -0500
commit7488335dcf382574c47fb27fcbad3f04a9841db6 (patch)
tree79950689dd8c4948101c78f153ce9814feb392bc /arch
parente1a621da2f6918c0e7c5f8fd5dd6e211fb3c7087 (diff)
ARM: S3C24XX: cleanup the included soc init functions in common.h
Only the _init, _init_clocks, _init_uarts and _map_io functions need NULL defines, as they are used in the cpu map. Further integrate the two restart functions already in common.h in their respective soc part and compact the numerous empty lines. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c24xx/common.h47
1 files changed, 5 insertions, 42 deletions
diff --git a/arch/arm/mach-s3c24xx/common.h b/arch/arm/mach-s3c24xx/common.h
index 4db3dd898064..8a2b4137ddb6 100644
--- a/arch/arm/mach-s3c24xx/common.h
+++ b/arch/arm/mach-s3c24xx/common.h
@@ -12,17 +12,15 @@
12#ifndef __ARCH_ARM_MACH_S3C24XX_COMMON_H 12#ifndef __ARCH_ARM_MACH_S3C24XX_COMMON_H
13#define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__ 13#define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__
14 14
15#ifdef CONFIG_CPU_S3C2410 15struct s3c2410_uartcfg;
16 16
17#ifdef CONFIG_CPU_S3C2410
17extern int s3c2410_init(void); 18extern int s3c2410_init(void);
18extern int s3c2410a_init(void); 19extern int s3c2410a_init(void);
19
20extern void s3c2410_map_io(void); 20extern void s3c2410_map_io(void);
21
22extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no); 21extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no);
23
24extern void s3c2410_init_clocks(int xtal); 22extern void s3c2410_init_clocks(int xtal);
25 23extern void s3c2410_restart(char mode, const char *cmd);
26#else 24#else
27#define s3c2410_init_clocks NULL 25#define s3c2410_init_clocks NULL
28#define s3c2410_init_uarts NULL 26#define s3c2410_init_uarts NULL
@@ -32,61 +30,41 @@ extern void s3c2410_init_clocks(int xtal);
32#endif 30#endif
33 31
34#ifdef CONFIG_CPU_S3C2412 32#ifdef CONFIG_CPU_S3C2412
35
36extern int s3c2412_init(void); 33extern int s3c2412_init(void);
37
38extern void s3c2412_map_io(void); 34extern void s3c2412_map_io(void);
39
40extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no); 35extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no);
41
42extern void s3c2412_init_clocks(int xtal); 36extern void s3c2412_init_clocks(int xtal);
43
44extern int s3c2412_baseclk_add(void); 37extern int s3c2412_baseclk_add(void);
45
46extern void s3c2412_restart(char mode, const char *cmd); 38extern void s3c2412_restart(char mode, const char *cmd);
47#else 39#else
48#define s3c2412_init_clocks NULL 40#define s3c2412_init_clocks NULL
49#define s3c2412_init_uarts NULL 41#define s3c2412_init_uarts NULL
50#define s3c2412_map_io NULL 42#define s3c2412_map_io NULL
51#define s3c2412_init NULL 43#define s3c2412_init NULL
52#define s3c2412_restart NULL
53#endif 44#endif
54 45
55#ifdef CONFIG_CPU_S3C2416 46#ifdef CONFIG_CPU_S3C2416
56
57struct s3c2410_uartcfg;
58
59extern int s3c2416_init(void); 47extern int s3c2416_init(void);
60
61extern void s3c2416_map_io(void); 48extern void s3c2416_map_io(void);
62
63extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no); 49extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no);
64
65extern void s3c2416_init_clocks(int xtal); 50extern void s3c2416_init_clocks(int xtal);
66
67extern int s3c2416_baseclk_add(void); 51extern int s3c2416_baseclk_add(void);
68
69extern void s3c2416_restart(char mode, const char *cmd); 52extern void s3c2416_restart(char mode, const char *cmd);
70
71extern void s3c2416_init_irq(void); 53extern void s3c2416_init_irq(void);
72extern struct syscore_ops s3c2416_irq_syscore_ops;
73 54
55extern struct syscore_ops s3c2416_irq_syscore_ops;
74#else 56#else
75#define s3c2416_init_clocks NULL 57#define s3c2416_init_clocks NULL
76#define s3c2416_init_uarts NULL 58#define s3c2416_init_uarts NULL
77#define s3c2416_map_io NULL 59#define s3c2416_map_io NULL
78#define s3c2416_init NULL 60#define s3c2416_init NULL
79#define s3c2416_restart NULL
80#endif 61#endif
81 62
82#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) 63#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
83
84extern void s3c244x_map_io(void); 64extern void s3c244x_map_io(void);
85
86extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no); 65extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no);
87
88extern void s3c244x_init_clocks(int xtal); 66extern void s3c244x_init_clocks(int xtal);
89 67extern void s3c244x_restart(char mode, const char *cmd);
90#else 68#else
91#define s3c244x_init_clocks NULL 69#define s3c244x_init_clocks NULL
92#define s3c244x_init_uarts NULL 70#define s3c244x_init_uarts NULL
@@ -94,7 +72,6 @@ extern void s3c244x_init_clocks(int xtal);
94 72
95#ifdef CONFIG_CPU_S3C2440 73#ifdef CONFIG_CPU_S3C2440
96extern int s3c2440_init(void); 74extern int s3c2440_init(void);
97
98extern void s3c2440_map_io(void); 75extern void s3c2440_map_io(void);
99#else 76#else
100#define s3c2440_init NULL 77#define s3c2440_init NULL
@@ -103,7 +80,6 @@ extern void s3c2440_map_io(void);
103 80
104#ifdef CONFIG_CPU_S3C2442 81#ifdef CONFIG_CPU_S3C2442
105extern int s3c2442_init(void); 82extern int s3c2442_init(void);
106
107extern void s3c2442_map_io(void); 83extern void s3c2442_map_io(void);
108#else 84#else
109#define s3c2442_init NULL 85#define s3c2442_init NULL
@@ -111,33 +87,20 @@ extern void s3c2442_map_io(void);
111#endif 87#endif
112 88
113#ifdef CONFIG_CPU_S3C2443 89#ifdef CONFIG_CPU_S3C2443
114
115struct s3c2410_uartcfg;
116
117extern int s3c2443_init(void); 90extern int s3c2443_init(void);
118
119extern void s3c2443_map_io(void); 91extern void s3c2443_map_io(void);
120
121extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no); 92extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);
122
123extern void s3c2443_init_clocks(int xtal); 93extern void s3c2443_init_clocks(int xtal);
124
125extern int s3c2443_baseclk_add(void); 94extern int s3c2443_baseclk_add(void);
126
127extern void s3c2443_restart(char mode, const char *cmd); 95extern void s3c2443_restart(char mode, const char *cmd);
128
129extern void s3c2443_init_irq(void); 96extern void s3c2443_init_irq(void);
130#else 97#else
131#define s3c2443_init_clocks NULL 98#define s3c2443_init_clocks NULL
132#define s3c2443_init_uarts NULL 99#define s3c2443_init_uarts NULL
133#define s3c2443_map_io NULL 100#define s3c2443_map_io NULL
134#define s3c2443_init NULL 101#define s3c2443_init NULL
135#define s3c2443_restart NULL
136#endif 102#endif
137 103
138void s3c2410_restart(char mode, const char *cmd);
139void s3c244x_restart(char mode, const char *cmd);
140
141extern struct syscore_ops s3c24xx_irq_syscore_ops; 104extern struct syscore_ops s3c24xx_irq_syscore_ops;
142 105
143#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */ 106#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */