ARM: at91: fix pm declarations
[linux-2.6-block.git] / arch / arm / mach-at91 / generic.h
CommitLineData
73a59c1c 1/*
9d041268 2 * linux/arch/arm/mach-at91/generic.h
73a59c1c
SP
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
1bd59dbe
MR
11#ifndef _AT91_GENERIC_H
12#define _AT91_GENERIC_H
13
8014d6f4 14#include <linux/of.h>
7b6d864b 15#include <linux/reboot.h>
bd602995 16
1b021a3b 17 /* Map io */
21d08b9d 18extern void __init at91_map_io(void);
726d32bf 19extern void __init at91_alt_map_io(void);
1b021a3b 20
ba854e18 21 /* Timer */
6bb27d73 22extern void at91rm9200_timer_init(void);
73a59c1c 23
0d781716 24/* idle */
29ee506d 25extern void at91rm9200_idle(void);
0d781716
JCPV
26extern void at91sam9_idle(void);
27
4342d647
JCPV
28/* Matrix */
29extern void at91_ioremap_matrix(u32 base_addr);
4db0ba22
AB
30
31
32#ifdef CONFIG_PM
ad3fc3e3
NF
33extern 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);
4db0ba22 37#else
a91c5824
AB
38static 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) { }
4db0ba22
AB
42#endif
43
1bd59dbe 44#endif /* _AT91_GENERIC_H */