aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/common.h
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2011-12-22 17:27:42 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-12-23 14:07:55 -0500
commitb024043b6d0d3feecb1de350de9762a00a79eda1 (patch)
tree3332b1af6ee802cc3bc8b6911d7f88754bf307ab /arch/arm/mach-s3c64xx/common.h
parent61b3875382bc335423ccd7cbf2736c70175a54dd (diff)
ARM: 7245/1: S3C64XX: introduce arch/arm/mach-s3c64xx/common.[ch]
This patch introduces common.[ch] which are used only in the arch/arm/mach-s3c64xx/ directory. The common.c file merges the cpu.c, irq.c and irq-eint.c which are used commonly on S3C64XX SoCs and the common.h file replaces with plat/s3c6400.h and plat/s3c6410.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-s3c64xx/common.h')
-rw-r--r--arch/arm/mach-s3c64xx/common.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/common.h b/arch/arm/mach-s3c64xx/common.h
new file mode 100644
index 000000000000..9f523a273274
--- /dev/null
+++ b/arch/arm/mach-s3c64xx/common.h
@@ -0,0 +1,55 @@
1/*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/
9 *
10 * Common Header for S3C64XX machines
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License version 2 as
14 * published by the Free Software Foundation.
15 */
16
17#ifndef __ARCH_ARM_MACH_S3C64XX_COMMON_H
18#define __ARCH_ARM_MACH_S3C64XX_COMMON_H
19
20void s3c64xx_init_irq(u32 vic0, u32 vic1);
21void s3c64xx_init_io(struct map_desc *mach_desc, int size);
22
23void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit);
24void s3c64xx_setup_clocks(void);
25
26extern struct syscore_ops s3c64xx_irq_syscore_ops;
27extern struct sysdev_class s3c64xx_sysclass;
28
29#ifdef CONFIG_CPU_S3C6400
30
31extern int s3c6400_init(void);
32extern void s3c6400_init_irq(void);
33extern void s3c6400_map_io(void);
34extern void s3c6400_init_clocks(int xtal);
35
36#else
37#define s3c6400_init_clocks NULL
38#define s3c6400_map_io NULL
39#define s3c6400_init NULL
40#endif
41
42#ifdef CONFIG_CPU_S3C6410
43
44extern int s3c6410_init(void);
45extern void s3c6410_init_irq(void);
46extern void s3c6410_map_io(void);
47extern void s3c6410_init_clocks(int xtal);
48
49#else
50#define s3c6410_init_clocks NULL
51#define s3c6410_map_io NULL
52#define s3c6410_init NULL
53#endif
54
55#endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */