spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / arm / mach-s3c64xx / common.h
blob5eb9c9a7d73b3d8dd3123e88bedd2382d37f2f9c
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 void s3c64xx_init_irq(u32 vic0, u32 vic1);
21 void s3c64xx_init_io(struct map_desc *mach_desc, int size);
23 void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit);
24 void s3c64xx_setup_clocks(void);
26 void s3c64xx_restart(char mode, const char *cmd);
28 extern struct syscore_ops s3c64xx_irq_syscore_ops;
30 #ifdef CONFIG_CPU_S3C6400
32 extern int s3c6400_init(void);
33 extern void s3c6400_init_irq(void);
34 extern void s3c6400_map_io(void);
35 extern void s3c6400_init_clocks(int xtal);
37 #else
38 #define s3c6400_init_clocks NULL
39 #define s3c6400_map_io NULL
40 #define s3c6400_init NULL
41 #endif
43 #ifdef CONFIG_CPU_S3C6410
45 extern int s3c6410_init(void);
46 extern void s3c6410_init_irq(void);
47 extern void s3c6410_map_io(void);
48 extern void s3c6410_init_clocks(int xtal);
50 #else
51 #define s3c6410_init_clocks NULL
52 #define s3c6410_map_io NULL
53 #define s3c6410_init NULL
54 #endif
56 #endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */