SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 1 | /* |
Andrew Victor | 9d04126 | 2007-02-05 11:42:07 +0100 | [diff] [blame] | 2 | * linux/arch/arm/mach-at91/generic.h |
SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 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 | |
Maxime Ripard | 1bd59db | 2014-07-01 11:33:15 +0200 | [diff] [blame] | 11 | #ifndef _AT91_GENERIC_H |
| 12 | #define _AT91_GENERIC_H |
| 13 | |
Nicolas Ferre | 8014d6f | 2012-02-14 18:08:14 +0100 | [diff] [blame] | 14 | #include <linux/of.h> |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 15 | #include <linux/reboot.h> |
Jean-Christophe PLAGNIOL-VILLARD | bd60299 | 2011-02-02 07:27:07 +0100 | [diff] [blame] | 16 | |
Jean-Christophe PLAGNIOL-VILLARD | 1b021a3 | 2011-04-28 20:19:32 +0800 | [diff] [blame] | 17 | /* Map io */ |
Jean-Christophe PLAGNIOL-VILLARD | 21d08b9 | 2011-04-23 15:28:34 +0800 | [diff] [blame] | 18 | extern void __init at91_map_io(void); |
Nicolas Ferre | 726d32b | 2014-09-15 18:15:55 +0200 | [diff] [blame] | 19 | extern void __init at91_alt_map_io(void); |
Jean-Christophe PLAGNIOL-VILLARD | 1b021a3 | 2011-04-28 20:19:32 +0800 | [diff] [blame] | 20 | |
Jean-Christophe PLAGNIOL-VILLARD | 0d78171 | 2012-02-05 20:25:32 +0800 | [diff] [blame] | 21 | /* idle */ |
Alexandre Belloni | 29ee506 | 2015-01-15 15:59:31 +0100 | [diff] [blame] | 22 | extern void at91rm9200_idle(void); |
Jean-Christophe PLAGNIOL-VILLARD | 0d78171 | 2012-02-05 20:25:32 +0800 | [diff] [blame] | 23 | extern void at91sam9_idle(void); |
| 24 | |
Alexandre Belloni | 4db0ba2 | 2015-01-15 15:59:27 +0100 | [diff] [blame] | 25 | #ifdef CONFIG_PM |
Nicolas Ferre | ad3fc3e | 2015-01-27 18:41:33 +0100 | [diff] [blame] | 26 | extern void __init at91rm9200_pm_init(void); |
| 27 | extern void __init at91sam9260_pm_init(void); |
| 28 | extern void __init at91sam9g45_pm_init(void); |
| 29 | extern void __init at91sam9x5_pm_init(void); |
Alexandre Belloni | 4db0ba2 | 2015-01-15 15:59:27 +0100 | [diff] [blame] | 30 | #else |
Arnd Bergmann | a91c582 | 2015-01-25 14:42:49 +0100 | [diff] [blame] | 31 | static inline void __init at91rm9200_pm_init(void) { } |
| 32 | static inline void __init at91sam9260_pm_init(void) { } |
| 33 | static inline void __init at91sam9g45_pm_init(void) { } |
| 34 | static inline void __init at91sam9x5_pm_init(void) { } |
Alexandre Belloni | 4db0ba2 | 2015-01-15 15:59:27 +0100 | [diff] [blame] | 35 | #endif |
| 36 | |
Maxime Ripard | 1bd59db | 2014-07-01 11:33:15 +0200 | [diff] [blame] | 37 | #endif /* _AT91_GENERIC_H */ |