ARM: S3C24XX: move s3c24xx_init_irq to s3c2410_init_irq
[deliverable/linux.git] / arch / arm / mach-s3c24xx / common.h
CommitLineData
8551f3ff
KK
1/*
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
7488335d 15struct s3c2410_uartcfg;
e1a621da 16
7488335d 17#ifdef CONFIG_CPU_S3C2410
e1a621da
HS
18extern int s3c2410_init(void);
19extern int s3c2410a_init(void);
e1a621da 20extern void s3c2410_map_io(void);
e1a621da 21extern void s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no);
e1a621da 22extern void s3c2410_init_clocks(int xtal);
7488335d 23extern void s3c2410_restart(char mode, const char *cmd);
f182aa1d 24extern void s3c2410_init_irq(void);
e1a621da
HS
25#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
e1a621da 34extern int s3c2412_init(void);
e1a621da 35extern void s3c2412_map_io(void);
e1a621da 36extern void s3c2412_init_uarts(struct s3c2410_uartcfg *cfg, int no);
e1a621da 37extern void s3c2412_init_clocks(int xtal);
e1a621da 38extern int s3c2412_baseclk_add(void);
e1a621da 39extern void s3c2412_restart(char mode, const char *cmd);
0da09930 40extern void s3c2412_init_irq(void);
e1a621da
HS
41#else
42#define s3c2412_init_clocks NULL
43#define s3c2412_init_uarts NULL
44#define s3c2412_map_io NULL
45#define s3c2412_init NULL
e1a621da
HS
46#endif
47
48#ifdef CONFIG_CPU_S3C2416
e1a621da 49extern int s3c2416_init(void);
e1a621da 50extern void s3c2416_map_io(void);
e1a621da 51extern void s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no);
e1a621da 52extern void s3c2416_init_clocks(int xtal);
e1a621da 53extern int s3c2416_baseclk_add(void);
e1a621da 54extern void s3c2416_restart(char mode, const char *cmd);
e1a621da 55extern void s3c2416_init_irq(void);
e1a621da 56
7488335d 57extern struct syscore_ops s3c2416_irq_syscore_ops;
e1a621da
HS
58#else
59#define s3c2416_init_clocks NULL
60#define s3c2416_init_uarts NULL
61#define s3c2416_map_io NULL
62#define s3c2416_init NULL
e1a621da
HS
63#endif
64
65#if defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
e1a621da 66extern void s3c244x_map_io(void);
e1a621da 67extern void s3c244x_init_uarts(struct s3c2410_uartcfg *cfg, int no);
e1a621da 68extern void s3c244x_init_clocks(int xtal);
7488335d 69extern void s3c244x_restart(char mode, const char *cmd);
e1a621da
HS
70#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);
e1a621da 77extern void s3c2440_map_io(void);
ce6c164b 78extern void s3c2440_init_irq(void);
e1a621da
HS
79#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);
e1a621da 86extern void s3c2442_map_io(void);
ce6c164b 87extern void s3c2442_init_irq(void);
e1a621da
HS
88#else
89#define s3c2442_init NULL
90#define s3c2442_map_io NULL
91#endif
92
93#ifdef CONFIG_CPU_S3C2443
e1a621da 94extern int s3c2443_init(void);
e1a621da 95extern void s3c2443_map_io(void);
e1a621da 96extern void s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no);
e1a621da 97extern void s3c2443_init_clocks(int xtal);
e1a621da 98extern int s3c2443_baseclk_add(void);
e1a621da 99extern void s3c2443_restart(char mode, const char *cmd);
e1a621da
HS
100extern 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
e1a621da
HS
106#endif
107
d8fdec16
HS
108extern struct syscore_ops s3c24xx_irq_syscore_ops;
109
8551f3ff 110#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */
This page took 0.074111 seconds and 5 git commands to generate.