aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5p64x0/common.h
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2011-12-22 17:28:28 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-12-23 14:11:05 -0500
commit95af214becab511b5ef76082688865d434dada1a (patch)
treedabef4884baac7d2d1a1dd154fd29e06032870cc /arch/arm/mach-s5p64x0/common.h
parentb024043b6d0d3feecb1de350de9762a00a79eda1 (diff)
ARM: 7246/1: S5P64X0: introduce arch/arm/mach-s5p64x0/common.[ch]
This patch introduces common.[ch] which are used only in the arch/arm/mach-s5p64x0/ directory. The common.c file merges the cpu.c, init.c and irq-eint.c files which are used commonly on S5P64X0 SoCs and the common.h local header file replaces with plat/s5p6440.h and plat/s5p6450.h files. Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s5p64x0/common.h')
-rw-r--r--arch/arm/mach-s5p64x0/common.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/arm/mach-s5p64x0/common.h b/arch/arm/mach-s5p64x0/common.h
new file mode 100644
index 000000000000..8a1eca5f4ec9
--- /dev/null
+++ b/arch/arm/mach-s5p64x0/common.h
@@ -0,0 +1,55 @@
1/*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Common Header for S5P64X0 machines
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_S5P64X0_COMMON_H
13#define __ARCH_ARM_MACH_S5P64X0_COMMON_H
14
15void s5p6440_init_irq(void);
16void s5p6450_init_irq(void);
17void s5p64x0_init_io(struct map_desc *mach_desc, int size);
18
19void s5p6440_register_clocks(void);
20void s5p6440_setup_clocks(void);
21
22void s5p6450_register_clocks(void);
23void s5p6450_setup_clocks(void);
24
25#ifdef CONFIG_CPU_S5P6440
26
27extern int s5p64x0_init(void);
28extern void s5p6440_map_io(void);
29extern void s5p6440_init_clocks(int xtal);
30
31extern void s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no);
32
33#else
34#define s5p6440_init_clocks NULL
35#define s5p6440_init_uarts NULL
36#define s5p6440_map_io NULL
37#define s5p64x0_init NULL
38#endif
39
40#ifdef CONFIG_CPU_S5P6450
41
42extern int s5p64x0_init(void);
43extern void s5p6450_map_io(void);
44extern void s5p6450_init_clocks(int xtal);
45
46extern void s5p6450_init_uarts(struct s3c2410_uartcfg *cfg, int no);
47
48#else
49#define s5p6450_init_clocks NULL
50#define s5p6450_init_uarts NULL
51#define s5p6450_map_io NULL
52#define s5p64x0_init NULL
53#endif
54
55#endif /* __ARCH_ARM_MACH_S5P64X0_COMMON_H */