2 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
5 * Common Header for S3C24XX SoCs
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.
12 #ifndef __ARCH_ARM_MACH_S3C24XX_COMMON_H
13 #define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__
15 struct s3c2410_uartcfg
;
17 #ifdef CONFIG_CPU_S3C2410
18 extern int s3c2410_init(void);
19 extern int s3c2410a_init(void);
20 extern void s3c2410_map_io(void);
21 extern void s3c2410_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
22 extern void s3c2410_init_clocks(int xtal
);
23 extern void s3c2410_restart(char mode
, const char *cmd
);
24 extern void s3c2410_init_irq(void);
26 #define s3c2410_init_clocks NULL
27 #define s3c2410_init_uarts NULL
28 #define s3c2410_map_io NULL
29 #define s3c2410_init NULL
30 #define s3c2410a_init NULL
33 #ifdef CONFIG_CPU_S3C2412
34 extern int s3c2412_init(void);
35 extern void s3c2412_map_io(void);
36 extern void s3c2412_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
37 extern void s3c2412_init_clocks(int xtal
);
38 extern int s3c2412_baseclk_add(void);
39 extern void s3c2412_restart(char mode
, const char *cmd
);
40 extern void s3c2412_init_irq(void);
42 #define s3c2412_init_clocks NULL
43 #define s3c2412_init_uarts NULL
44 #define s3c2412_map_io NULL
45 #define s3c2412_init NULL
48 #ifdef CONFIG_CPU_S3C2416
49 extern int s3c2416_init(void);
50 extern void s3c2416_map_io(void);
51 extern void s3c2416_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
52 extern void s3c2416_init_clocks(int xtal
);
53 extern int s3c2416_baseclk_add(void);
54 extern void s3c2416_restart(char mode
, const char *cmd
);
55 extern void s3c2416_init_irq(void);
57 extern struct syscore_ops s3c2416_irq_syscore_ops
;
59 #define s3c2416_init_clocks NULL
60 #define s3c2416_init_uarts NULL
61 #define s3c2416_map_io NULL
62 #define s3c2416_init NULL
65 #if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
66 extern void s3c244x_map_io(void);
67 extern void s3c244x_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
68 extern void s3c244x_init_clocks(int xtal
);
69 extern void s3c244x_restart(char mode
, const char *cmd
);
71 #define s3c244x_init_clocks NULL
72 #define s3c244x_init_uarts NULL
75 #ifdef CONFIG_CPU_S3C2440
76 extern int s3c2440_init(void);
77 extern void s3c2440_map_io(void);
78 extern void s3c2440_init_irq(void);
80 #define s3c2440_init NULL
81 #define s3c2440_map_io NULL
84 #ifdef CONFIG_CPU_S3C2442
85 extern int s3c2442_init(void);
86 extern void s3c2442_map_io(void);
87 extern void s3c2442_init_irq(void);
89 #define s3c2442_init NULL
90 #define s3c2442_map_io NULL
93 #ifdef CONFIG_CPU_S3C2443
94 extern int s3c2443_init(void);
95 extern void s3c2443_map_io(void);
96 extern void s3c2443_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
97 extern void s3c2443_init_clocks(int xtal
);
98 extern int s3c2443_baseclk_add(void);
99 extern void s3c2443_restart(char mode
, const char *cmd
);
100 extern void s3c2443_init_irq(void);
102 #define s3c2443_init_clocks NULL
103 #define s3c2443_init_uarts NULL
104 #define s3c2443_map_io NULL
105 #define s3c2443_init NULL
108 extern struct syscore_ops s3c24xx_irq_syscore_ops
;
110 #endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */