generic.h 1.6 KB

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