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 #include <linux/reboot.h>
17 struct s3c2410_uartcfg
;
19 #ifdef CONFIG_CPU_S3C2410
20 extern int s3c2410_init(void);
21 extern int s3c2410a_init(void);
22 extern void s3c2410_map_io(void);
23 extern void s3c2410_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
24 extern void s3c2410_init_clocks(int xtal
);
25 extern void s3c2410_init_irq(void);
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
34 #ifdef CONFIG_CPU_S3C2412
35 extern int s3c2412_init(void);
36 extern void s3c2412_map_io(void);
37 extern void s3c2412_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
38 extern void s3c2412_init_clocks(int xtal
);
39 extern int s3c2412_baseclk_add(void);
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_init_irq(void);
56 extern struct syscore_ops s3c2416_irq_syscore_ops
;
58 #define s3c2416_init_clocks NULL
59 #define s3c2416_init_uarts NULL
60 #define s3c2416_map_io NULL
61 #define s3c2416_init NULL
64 #if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
65 extern void s3c244x_map_io(void);
66 extern void s3c244x_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
68 #define s3c244x_init_uarts NULL
71 #ifdef CONFIG_CPU_S3C2440
72 extern int s3c2440_init(void);
73 extern void s3c2440_map_io(void);
74 extern void s3c2440_init_clocks(int xtal
);
75 extern void s3c2440_init_irq(void);
77 #define s3c2440_init NULL
78 #define s3c2440_map_io NULL
81 #ifdef CONFIG_CPU_S3C2442
82 extern int s3c2442_init(void);
83 extern void s3c2442_map_io(void);
84 extern void s3c2442_init_clocks(int xtal
);
85 extern void s3c2442_init_irq(void);
87 #define s3c2442_init NULL
88 #define s3c2442_map_io NULL
91 #ifdef CONFIG_CPU_S3C2443
92 extern int s3c2443_init(void);
93 extern void s3c2443_map_io(void);
94 extern void s3c2443_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
95 extern void s3c2443_init_clocks(int xtal
);
96 extern int s3c2443_baseclk_add(void);
97 extern void s3c2443_init_irq(void);
99 #define s3c2443_init_clocks NULL
100 #define s3c2443_init_uarts NULL
101 #define s3c2443_map_io NULL
102 #define s3c2443_init NULL
105 extern struct syscore_ops s3c24xx_irq_syscore_ops
;
107 extern struct platform_device s3c2410_device_dma
;
108 extern struct platform_device s3c2412_device_dma
;
109 extern struct platform_device s3c2440_device_dma
;
110 extern struct platform_device s3c2443_device_dma
;
112 extern struct platform_device s3c2410_device_dclk
;
114 #ifdef CONFIG_S3C2410_COMMON_CLK
115 void __init
s3c2410_common_clk_init(struct device_node
*np
, unsigned long xti_f
,
117 void __iomem
*reg_base
);
119 #ifdef CONFIG_S3C2412_COMMON_CLK
120 void __init
s3c2412_common_clk_init(struct device_node
*np
, unsigned long xti_f
,
121 unsigned long ext_f
, void __iomem
*reg_base
);
123 #ifdef CONFIG_S3C2443_COMMON_CLK
124 void __init
s3c2443_common_clk_init(struct device_node
*np
, unsigned long xti_f
,
126 void __iomem
*reg_base
);
129 #endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */