]> git.ipfire.org Git - thirdparty/linux.git/blame - arch/arm/mach-sa1100/generic.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/linux.git] / arch / arm / mach-sa1100 / generic.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2/*
3 * linux/arch/arm/mach-sa1100/generic.h
4 *
5 * Author: Nicolas Pitre
6 */
e50322a5 7#include <linux/cpufreq.h>
7b6d864b 8#include <linux/reboot.h>
1da177e4 9
6bb27d73 10extern void sa1100_timer_init(void);
1da177e4
LT
11extern void __init sa1100_map_io(void);
12extern void __init sa1100_init_irq(void);
45528e38 13extern void __init sa1100_init_gpio(void);
7b6d864b 14extern void sa11x0_restart(enum reboot_mode, const char *);
7fea1ba5 15extern void sa11x0_init_late(void);
1da177e4
LT
16
17#define SET_BANK(__nr,__start,__size) \
18 mi->bank[__nr].start = (__start), \
be370302 19 mi->bank[__nr].size = (__size)
1da177e4 20
1da177e4
LT
21extern void sa1110_mb_enable(void);
22extern void sa1110_mb_disable(void);
23
22c8b4f1 24extern struct cpufreq_frequency_table sa11x0_freq_table[];
1da177e4 25extern unsigned int sa11x0_getspeed(unsigned int cpu);
1da177e4
LT
26
27struct flash_platform_data;
28struct resource;
29
7a5b4e16
RK
30void sa11x0_register_mtd(struct flash_platform_data *flash,
31 struct resource *res, int nr);
323cdfc1 32
1da177e4 33struct irda_platform_data;
7a5b4e16 34void sa11x0_register_irda(struct irda_platform_data *irda);
118ec0b3
RK
35
36struct mcp_plat_data;
e36e26a8 37void sa11x0_ppc_configure_mcp(void);
7a5b4e16 38void sa11x0_register_mcp(struct mcp_plat_data *data);
e1b7a72a
RK
39
40struct sa1100fb_mach_info;
41void sa11x0_register_lcd(struct sa1100fb_mach_info *inf);
7fea1ba5
SG
42
43#ifdef CONFIG_PM
44int sa11x0_pm_init(void);
45#else
46static inline int sa11x0_pm_init(void) { return 0; }
47#endif
198b51e8
RK
48
49int sa11xx_clk_init(void);