Linux 3.11-rc3
[cris-mirror.git] / arch / arm / mach-s3c64xx / common.h
blobe8f990b37665b900d667c7332b6e26bf389beb93
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/
10 * Common Header for S3C64XX machines
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.
17 #ifndef __ARCH_ARM_MACH_S3C64XX_COMMON_H
18 #define __ARCH_ARM_MACH_S3C64XX_COMMON_H
20 #include <linux/reboot.h>
22 void s3c64xx_init_irq(u32 vic0, u32 vic1);
23 void s3c64xx_init_io(struct map_desc *mach_desc, int size);
25 void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit);
26 void s3c64xx_setup_clocks(void);
28 void s3c64xx_restart(enum reboot_mode mode, const char *cmd);
29 void s3c64xx_init_late(void);
31 #ifdef CONFIG_CPU_S3C6400
33 extern int s3c6400_init(void);
34 extern void s3c6400_init_irq(void);
35 extern void s3c6400_map_io(void);
36 extern void s3c6400_init_clocks(int xtal);
38 #else
39 #define s3c6400_init_clocks NULL
40 #define s3c6400_map_io NULL
41 #define s3c6400_init NULL
42 #endif
44 #ifdef CONFIG_CPU_S3C6410
46 extern int s3c6410_init(void);
47 extern void s3c6410_init_irq(void);
48 extern void s3c6410_map_io(void);
49 extern void s3c6410_init_clocks(int xtal);
51 #else
52 #define s3c6410_init_clocks NULL
53 #define s3c6410_map_io NULL
54 #define s3c6410_init NULL
55 #endif
57 #ifdef CONFIG_PM
58 int __init s3c64xx_pm_late_initcall(void);
59 #else
60 static inline int s3c64xx_pm_late_initcall(void) { return 0; }
61 #endif
63 #endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */