Merge tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[sfrench/cifs-2.6.git] / arch / arm / mach-at91 / generic.h
1 /*
2  * linux/arch/arm/mach-at91/generic.h
3  *
4  *  Copyright (C) 2005 David Brownell
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 #ifndef _AT91_GENERIC_H
12 #define _AT91_GENERIC_H
13
14 #include <linux/of.h>
15 #include <linux/reboot.h>
16
17  /* Map io */
18 extern void __init at91_map_io(void);
19 extern void __init at91_alt_map_io(void);
20
21  /* Timer */
22 extern void at91rm9200_timer_init(void);
23
24 /* idle */
25 extern void at91rm9200_idle(void);
26 extern void at91sam9_idle(void);
27
28 #ifdef CONFIG_PM
29 extern void __init at91rm9200_pm_init(void);
30 extern void __init at91sam9260_pm_init(void);
31 extern void __init at91sam9g45_pm_init(void);
32 extern void __init at91sam9x5_pm_init(void);
33 #else
34 static inline void __init at91rm9200_pm_init(void) { }
35 static inline void __init at91sam9260_pm_init(void) { }
36 static inline void __init at91sam9g45_pm_init(void) { }
37 static inline void __init at91sam9x5_pm_init(void) { }
38 #endif
39
40 #endif /* _AT91_GENERIC_H */