generic.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * linux/arch/arm/mach-pxa/generic.h
  3. *
  4. * Author: Nicolas Pitre
  5. * Copyright: MontaVista Software Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. struct irq_data;
  12. struct sys_timer;
  13. extern struct sys_timer pxa_timer;
  14. extern void __init pxa_map_io(void);
  15. extern unsigned int get_clk_frequency_khz(int info);
  16. #define SET_BANK(__nr,__start,__size) \
  17. mi->bank[__nr].start = (__start), \
  18. mi->bank[__nr].size = (__size)
  19. #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
  20. #ifdef CONFIG_PXA25x
  21. extern unsigned pxa25x_get_clk_frequency_khz(int);
  22. #else
  23. #define pxa25x_get_clk_frequency_khz(x) (0)
  24. #endif
  25. #ifdef CONFIG_PXA27x
  26. extern unsigned pxa27x_get_clk_frequency_khz(int);
  27. #else
  28. #define pxa27x_get_clk_frequency_khz(x) (0)
  29. #endif
  30. #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
  31. extern void pxa2xx_clear_reset_status(unsigned int);
  32. #else
  33. static inline void pxa2xx_clear_reset_status(unsigned int mask) {}
  34. #endif
  35. #ifdef CONFIG_PXA3xx
  36. extern unsigned pxa3xx_get_clk_frequency_khz(int);
  37. #else
  38. #define pxa3xx_get_clk_frequency_khz(x) (0)
  39. #endif
  40. extern struct syscore_ops pxa_irq_syscore_ops;
  41. extern struct syscore_ops pxa2xx_mfp_syscore_ops;
  42. extern struct syscore_ops pxa3xx_mfp_syscore_ops;
  43. void __init pxa_set_ffuart_info(void *info);
  44. void __init pxa_set_btuart_info(void *info);
  45. void __init pxa_set_stuart_info(void *info);
  46. void __init pxa_set_hwuart_info(void *info);
  47. void pxa_restart(char, const char *);