1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * Common Header for S3C24XX SoCs
9 #ifndef __ARCH_ARM_MACH_S3C24XX_COMMON_H
10 #define __ARCH_ARM_MACH_S3C24XX_COMMON_H __FILE__
12 #include <linux/reboot.h>
14 struct s3c2410_uartcfg
;
16 #ifdef CONFIG_CPU_S3C2410
17 extern int s3c2410_init(void);
18 extern int s3c2410a_init(void);
19 extern void s3c2410_map_io(void);
20 extern void s3c2410_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
21 extern void s3c2410_init_clocks(int xtal
);
22 extern void s3c2410_init_irq(void);
24 #define s3c2410_init_clocks NULL
25 #define s3c2410_init_uarts NULL
26 #define s3c2410_map_io NULL
27 #define s3c2410_init NULL
28 #define s3c2410a_init NULL
31 #ifdef CONFIG_CPU_S3C2412
32 extern int s3c2412_init(void);
33 extern void s3c2412_map_io(void);
34 extern void s3c2412_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
35 extern void s3c2412_init_clocks(int xtal
);
36 extern int s3c2412_baseclk_add(void);
37 extern void s3c2412_init_irq(void);
39 #define s3c2412_init_clocks NULL
40 #define s3c2412_init_uarts NULL
41 #define s3c2412_map_io NULL
42 #define s3c2412_init NULL
45 #ifdef CONFIG_CPU_S3C2416
46 extern int s3c2416_init(void);
47 extern void s3c2416_map_io(void);
48 extern void s3c2416_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
49 extern void s3c2416_init_clocks(int xtal
);
50 extern int s3c2416_baseclk_add(void);
51 extern void s3c2416_init_irq(void);
53 extern struct syscore_ops s3c2416_irq_syscore_ops
;
55 #define s3c2416_init_clocks NULL
56 #define s3c2416_init_uarts NULL
57 #define s3c2416_map_io NULL
58 #define s3c2416_init NULL
61 #if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
62 extern void s3c244x_map_io(void);
63 extern void s3c244x_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
65 #define s3c244x_init_uarts NULL
68 #ifdef CONFIG_CPU_S3C2440
69 extern int s3c2440_init(void);
70 extern void s3c2440_map_io(void);
71 extern void s3c2440_init_clocks(int xtal
);
72 extern void s3c2440_init_irq(void);
74 #define s3c2440_init NULL
75 #define s3c2440_map_io NULL
78 #ifdef CONFIG_CPU_S3C2442
79 extern int s3c2442_init(void);
80 extern void s3c2442_map_io(void);
81 extern void s3c2442_init_clocks(int xtal
);
82 extern void s3c2442_init_irq(void);
84 #define s3c2442_init NULL
85 #define s3c2442_map_io NULL
88 #ifdef CONFIG_CPU_S3C2443
89 extern int s3c2443_init(void);
90 extern void s3c2443_map_io(void);
91 extern void s3c2443_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
);
92 extern void s3c2443_init_clocks(int xtal
);
93 extern int s3c2443_baseclk_add(void);
94 extern void s3c2443_init_irq(void);
96 #define s3c2443_init_clocks NULL
97 #define s3c2443_init_uarts NULL
98 #define s3c2443_map_io NULL
99 #define s3c2443_init NULL
102 extern struct syscore_ops s3c24xx_irq_syscore_ops
;
104 extern struct platform_device s3c2410_device_dma
;
105 extern struct platform_device s3c2412_device_dma
;
106 extern struct platform_device s3c2440_device_dma
;
107 extern struct platform_device s3c2443_device_dma
;
109 extern struct platform_device s3c2410_device_dclk
;
111 #ifdef CONFIG_S3C2410_COMMON_CLK
112 void __init
s3c2410_common_clk_init(struct device_node
*np
, unsigned long xti_f
,
114 void __iomem
*reg_base
);
116 #ifdef CONFIG_S3C2412_COMMON_CLK
117 void __init
s3c2412_common_clk_init(struct device_node
*np
, unsigned long xti_f
,
118 unsigned long ext_f
, void __iomem
*reg_base
);
120 #ifdef CONFIG_S3C2443_COMMON_CLK
121 void __init
s3c2443_common_clk_init(struct device_node
*np
, unsigned long xti_f
,
123 void __iomem
*reg_base
);
126 #endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */