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