xref: /openbmc/linux/arch/arm/mach-at91/generic.h (revision 4db0ba22)
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 extern void __init at91_init_sram(int bank, unsigned long base,
21 				  unsigned int length);
22 
23  /* Processors */
24 extern void __init at91_dt_initialize(void);
25 
26  /* Timer */
27 extern void at91rm9200_timer_init(void);
28 
29 /* idle */
30 extern void at91sam9_idle(void);
31 
32 /* Matrix */
33 extern void at91_ioremap_matrix(u32 base_addr);
34 
35 
36 #ifdef CONFIG_PM
37 extern void __init at91_rm9200_pm_init(void);
38 extern void __init at91_sam9260_pm_init(void);
39 extern void __init at91_sam9g45_pm_init(void);
40 #else
41 void __init at91_rm9200_pm_init(void) { }
42 void __init at91_sam9260_pm_init(void) { }
43 void __init at91_sam9g45_pm_init(void) { }
44 #endif
45 
46 #endif /* _AT91_GENERIC_H */
47