blob: b0fa7dc7286d9dc120a79c77be70fe0adb365910 [file] [log] [blame]
SAN People73a59c12006-01-09 17:05:41 +00001/*
Andrew Victor9d041262007-02-05 11:42:07 +01002 * linux/arch/arm/mach-at91/generic.h
SAN People73a59c12006-01-09 17:05:41 +00003 *
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 Ripard1bd59db2014-07-01 11:33:15 +020011#ifndef _AT91_GENERIC_H
12#define _AT91_GENERIC_H
13
Nicolas Ferre8014d6f2012-02-14 18:08:14 +010014#include <linux/of.h>
Robin Holt7b6d8642013-07-08 16:01:40 -070015#include <linux/reboot.h>
Jean-Christophe PLAGNIOL-VILLARDbd602992011-02-02 07:27:07 +010016
Jean-Christophe PLAGNIOL-VILLARD1b021a32011-04-28 20:19:32 +080017 /* Map io */
Jean-Christophe PLAGNIOL-VILLARD21d08b92011-04-23 15:28:34 +080018extern void __init at91_map_io(void);
Nicolas Ferre726d32b2014-09-15 18:15:55 +020019extern void __init at91_alt_map_io(void);
Jean-Christophe PLAGNIOL-VILLARD1b021a32011-04-28 20:19:32 +080020
Jean-Christophe PLAGNIOL-VILLARD0d781712012-02-05 20:25:32 +080021/* idle */
Alexandre Belloni29ee5062015-01-15 15:59:31 +010022extern void at91rm9200_idle(void);
Jean-Christophe PLAGNIOL-VILLARD0d781712012-02-05 20:25:32 +080023extern void at91sam9_idle(void);
24
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010025#ifdef CONFIG_PM
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010026extern void __init at91rm9200_pm_init(void);
27extern void __init at91sam9260_pm_init(void);
28extern void __init at91sam9g45_pm_init(void);
29extern void __init at91sam9x5_pm_init(void);
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010030#else
Arnd Bergmanna91c5822015-01-25 14:42:49 +010031static inline void __init at91rm9200_pm_init(void) { }
32static inline void __init at91sam9260_pm_init(void) { }
33static inline void __init at91sam9g45_pm_init(void) { }
34static inline void __init at91sam9x5_pm_init(void) { }
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010035#endif
36
Maxime Ripard1bd59db2014-07-01 11:33:15 +020037#endif /* _AT91_GENERIC_H */