blob: 583369ffc284d5588b4c7f4c742cedbefb7614f3 [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
Andrew Victorba854e12006-07-05 17:22:52 +010021 /* Timer */
Stephen Warren6bb27d72012-11-08 12:40:59 -070022extern void at91rm9200_timer_init(void);
SAN People73a59c12006-01-09 17:05:41 +000023
Jean-Christophe PLAGNIOL-VILLARD0d781712012-02-05 20:25:32 +080024/* idle */
Alexandre Belloni29ee5062015-01-15 15:59:31 +010025extern void at91rm9200_idle(void);
Jean-Christophe PLAGNIOL-VILLARD0d781712012-02-05 20:25:32 +080026extern void at91sam9_idle(void);
27
Jean-Christophe PLAGNIOL-VILLARD4342d642011-11-27 23:15:50 +080028/* Matrix */
29extern void at91_ioremap_matrix(u32 base_addr);
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010030
31
32#ifdef CONFIG_PM
Nicolas Ferread3fc3e2015-01-27 18:41:33 +010033extern void __init at91rm9200_pm_init(void);
34extern void __init at91sam9260_pm_init(void);
35extern void __init at91sam9g45_pm_init(void);
36extern void __init at91sam9x5_pm_init(void);
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010037#else
Arnd Bergmanna91c5822015-01-25 14:42:49 +010038static inline void __init at91rm9200_pm_init(void) { }
39static inline void __init at91sam9260_pm_init(void) { }
40static inline void __init at91sam9g45_pm_init(void) { }
41static inline void __init at91sam9x5_pm_init(void) { }
Alexandre Belloni4db0ba22015-01-15 15:59:27 +010042#endif
43
Maxime Ripard1bd59db2014-07-01 11:33:15 +020044#endif /* _AT91_GENERIC_H */