blob: 307c3714be55d43de2b8e4b65f92fbf3a7ea2e22 [file] [log] [blame]
Kukjin Kim8551f3f2012-03-29 08:55:48 +09001/*
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
Heiko Stuebner74883352013-02-08 10:37:13 -080015struct s3c2410_uartcfg;
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080016
Heiko Stuebner74883352013-02-08 10:37:13 -080017#ifdef CONFIG_CPU_S3C2410
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080018extern int s3c2410_init(void);
19extern int s3c2410a_init(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080020extern void s3c2410_map_io(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080021extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080022extern void s3c2410_init_clocks(int xtal);
Heiko Stuebner74883352013-02-08 10:37:13 -080023extern void s3c2410_restart(char mode, const char *cmd);
Heiko Stuebnerf182aa12013-03-07 12:38:19 +090024extern void s3c2410_init_irq(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080025#else
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
31#endif
32
33#ifdef CONFIG_CPU_S3C2412
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080034extern int s3c2412_init(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080035extern void s3c2412_map_io(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080036extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080037extern void s3c2412_init_clocks(int xtal);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080038extern int s3c2412_baseclk_add(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080039extern void s3c2412_restart(char mode, const char *cmd);
Heiko Stuebner0da09932013-02-12 10:09:18 -080040extern void s3c2412_init_irq(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080041#else
42#define s3c2412_init_clocks NULL
43#define s3c2412_init_uarts NULL
44#define s3c2412_map_io NULL
45#define s3c2412_init NULL
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080046#endif
47
48#ifdef CONFIG_CPU_S3C2416
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080049extern int s3c2416_init(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080050extern void s3c2416_map_io(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080051extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080052extern void s3c2416_init_clocks(int xtal);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080053extern int s3c2416_baseclk_add(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080054extern void s3c2416_restart(char mode, const char *cmd);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080055extern void s3c2416_init_irq(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080056
Heiko Stuebner74883352013-02-08 10:37:13 -080057extern struct syscore_ops s3c2416_irq_syscore_ops;
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080058#else
59#define s3c2416_init_clocks NULL
60#define s3c2416_init_uarts NULL
61#define s3c2416_map_io NULL
62#define s3c2416_init NULL
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080063#endif
64
65#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080066extern void s3c244x_map_io(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080067extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080068extern void s3c244x_init_clocks(int xtal);
Heiko Stuebner74883352013-02-08 10:37:13 -080069extern void s3c244x_restart(char mode, const char *cmd);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080070#else
71#define s3c244x_init_clocks NULL
72#define s3c244x_init_uarts NULL
73#endif
74
75#ifdef CONFIG_CPU_S3C2440
76extern int s3c2440_init(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080077extern void s3c2440_map_io(void);
Heiko Stuebnerce6c1642013-02-12 09:59:20 -080078extern void s3c2440_init_irq(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080079#else
80#define s3c2440_init NULL
81#define s3c2440_map_io NULL
82#endif
83
84#ifdef CONFIG_CPU_S3C2442
85extern int s3c2442_init(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080086extern void s3c2442_map_io(void);
Heiko Stuebnerce6c1642013-02-12 09:59:20 -080087extern void s3c2442_init_irq(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080088#else
89#define s3c2442_init NULL
90#define s3c2442_map_io NULL
91#endif
92
93#ifdef CONFIG_CPU_S3C2443
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080094extern int s3c2443_init(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080095extern void s3c2443_map_io(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080096extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080097extern void s3c2443_init_clocks(int xtal);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080098extern int s3c2443_baseclk_add(void);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -080099extern void s3c2443_restart(char mode, const char *cmd);
Heiko Stuebnere1a621d2013-02-08 10:31:28 -0800100extern void s3c2443_init_irq(void);
101#else
102#define s3c2443_init_clocks NULL
103#define s3c2443_init_uarts NULL
104#define s3c2443_map_io NULL
105#define s3c2443_init NULL
Heiko Stuebnere1a621d2013-02-08 10:31:28 -0800106#endif
107
Heiko Stuebnerd8fdec12013-01-29 10:25:22 -0800108extern struct syscore_ops s3c24xx_irq_syscore_ops;
109
Kukjin Kim8551f3f2012-03-29 08:55:48 +0900110#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */