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 | f0051d8 | 2011-05-10 03:20:09 +0800 | [diff] [blame] | 20 | extern void __init at91_init_sram(int bank, unsigned long base, |
| 21 | unsigned int length); |
Jean-Christophe PLAGNIOL-VILLARD | 1b021a3 | 2011-04-28 20:19:32 +0800 | [diff] [blame] | 22 | |
Andrew Victor | 2eeaaa2 | 2006-09-27 10:50:59 +0100 | [diff] [blame] | 23 | /* Processors */ |
Jean-Christophe PLAGNIOL-VILLARD | 2b11ea5 | 2012-02-28 13:57:51 +0800 | [diff] [blame] | 24 | extern void __init at91_dt_initialize(void); |
Andrew Victor | 2eeaaa2 | 2006-09-27 10:50:59 +0100 | [diff] [blame] | 25 | |
Andrew Victor | ba854e1 | 2006-07-05 17:22:52 +0100 | [diff] [blame] | 26 | /* Timer */ |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 27 | extern void at91rm9200_timer_init(void); |
SAN People | 73a59c1 | 2006-01-09 17:05:41 +0000 | [diff] [blame] | 28 | |
Jean-Christophe PLAGNIOL-VILLARD | 0d78171 | 2012-02-05 20:25:32 +0800 | [diff] [blame] | 29 | /* idle */ |
| 30 | extern void at91sam9_idle(void); |
| 31 | |
Jean-Christophe PLAGNIOL-VILLARD | 4342d64 | 2011-11-27 23:15:50 +0800 | [diff] [blame] | 32 | /* Matrix */ |
| 33 | extern void at91_ioremap_matrix(u32 base_addr); |
Alexandre Belloni | 4db0ba2 | 2015-01-15 15:59:27 +0100 | [diff] [blame^] | 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 | |
Maxime Ripard | 1bd59db | 2014-07-01 11:33:15 +0200 | [diff] [blame] | 46 | #endif /* _AT91_GENERIC_H */ |