^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * linux/arch/arm/mach-sa1100/generic.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Author: Nicolas Pitre
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <linux/cpufreq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <linux/reboot.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) extern void sa1100_timer_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) extern void __init sa1100_map_io(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern void __init sa1100_init_irq(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern void __init sa1100_init_gpio(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern void sa11x0_restart(enum reboot_mode, const char *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern void sa11x0_init_late(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define SET_BANK(__nr,__start,__size) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) mi->bank[__nr].start = (__start), \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) mi->bank[__nr].size = (__size)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern void sa1110_mb_enable(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern void sa1110_mb_disable(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern struct cpufreq_frequency_table sa11x0_freq_table[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern unsigned int sa11x0_getspeed(unsigned int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct flash_platform_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) struct resource;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) void sa11x0_register_mtd(struct flash_platform_data *flash,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) struct resource *res, int nr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) struct irda_platform_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) void sa11x0_register_irda(struct irda_platform_data *irda);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) struct mcp_plat_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) void sa11x0_ppc_configure_mcp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) void sa11x0_register_mcp(struct mcp_plat_data *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) struct sa1100fb_mach_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) void sa11x0_register_lcd(struct sa1100fb_mach_info *inf);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #ifdef CONFIG_PM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) int sa11x0_pm_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) static inline int sa11x0_pm_init(void) { return 0; }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) int sa11xx_clk_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) struct gpiod_lookup_table;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) void sa11x0_register_pcmcia(int socket, struct gpiod_lookup_table *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) struct fixed_voltage_config;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) struct regulator_consumer_supply;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) int sa11x0_register_fixed_regulator(int n, struct fixed_voltage_config *cfg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) struct regulator_consumer_supply *supplies, unsigned num_supplies,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) bool uses_gpio);