Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-sa1100/generic.h |
| 3 | * |
| 4 | * Author: Nicolas Pitre |
| 5 | */ |
Viresh Kumar | e50322a | 2013-10-12 22:16:05 +0200 | [diff] [blame] | 6 | #include <linux/cpufreq.h> |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 7 | #include <linux/reboot.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 9 | extern void sa1100_timer_init(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | extern void __init sa1100_map_io(void); |
| 11 | extern void __init sa1100_init_irq(void); |
Dmitry Baryshkov | 45528e3 | 2008-04-10 13:31:47 +0100 | [diff] [blame] | 12 | extern void __init sa1100_init_gpio(void); |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 13 | extern void sa11x0_restart(enum reboot_mode, const char *); |
Shawn Guo | 7fea1ba | 2012-04-26 21:22:45 +0800 | [diff] [blame] | 14 | extern void sa11x0_init_late(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
| 16 | #define SET_BANK(__nr,__start,__size) \ |
| 17 | mi->bank[__nr].start = (__start), \ |
Russell King | be37030 | 2010-05-07 17:40:33 +0100 | [diff] [blame] | 18 | mi->bank[__nr].size = (__size) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | extern void sa1110_mb_enable(void); |
| 21 | extern void sa1110_mb_disable(void); |
| 22 | |
Viresh Kumar | 22c8b4f | 2013-09-16 18:56:32 +0530 | [diff] [blame] | 23 | extern struct cpufreq_frequency_table sa11x0_freq_table[]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | extern unsigned int sa11x0_getspeed(unsigned int cpu); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
| 26 | struct flash_platform_data; |
| 27 | struct resource; |
| 28 | |
Russell King | 7a5b4e1 | 2009-10-06 14:55:53 +0100 | [diff] [blame] | 29 | void sa11x0_register_mtd(struct flash_platform_data *flash, |
| 30 | struct resource *res, int nr); |
Russell King | 323cdfc | 2005-08-18 10:10:46 +0100 | [diff] [blame] | 31 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | struct irda_platform_data; |
Russell King | 7a5b4e1 | 2009-10-06 14:55:53 +0100 | [diff] [blame] | 33 | void sa11x0_register_irda(struct irda_platform_data *irda); |
Russell King | 118ec0b | 2005-09-18 22:16:41 +0100 | [diff] [blame] | 34 | |
| 35 | struct mcp_plat_data; |
Russell King | e36e26a | 2012-01-20 22:24:07 +0000 | [diff] [blame] | 36 | void sa11x0_ppc_configure_mcp(void); |
Russell King | 7a5b4e1 | 2009-10-06 14:55:53 +0100 | [diff] [blame] | 37 | void sa11x0_register_mcp(struct mcp_plat_data *data); |
Russell King | e1b7a72 | 2012-01-14 11:50:04 +0000 | [diff] [blame] | 38 | |
| 39 | struct sa1100fb_mach_info; |
| 40 | void sa11x0_register_lcd(struct sa1100fb_mach_info *inf); |
Shawn Guo | 7fea1ba | 2012-04-26 21:22:45 +0800 | [diff] [blame] | 41 | |
| 42 | #ifdef CONFIG_PM |
| 43 | int sa11x0_pm_init(void); |
| 44 | #else |
| 45 | static inline int sa11x0_pm_init(void) { return 0; } |
| 46 | #endif |