generic.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. extern void pxa_timer_init(void);
  13. extern void __init pxa_map_io(void);
  14. extern unsigned int get_clk_frequency_khz(int info);
  15. #define SET_BANK(__nr,__start,__size) \
  16. mi->bank[__nr].start = (__start), \
  17. mi->bank[__nr].size = (__size)
  18. #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
  19. #ifdef CONFIG_PXA25x
  20. extern unsigned pxa25x_get_clk_frequency_khz(int);
  21. #else
  22. #define pxa25x_get_clk_frequency_khz(x) (0)
  23. #endif
  24. #ifdef CONFIG_PXA27x
  25. extern unsigned pxa27x_get_clk_frequency_khz(int);
  26. #else
  27. #define pxa27x_get_clk_frequency_khz(x) (0)
  28. #endif
  29. #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
  30. extern void pxa2xx_clear_reset_status(unsigned int);
  31. #else
  32. static inline void pxa2xx_clear_reset_status(unsigned int mask) {}
  33. #endif
  34. #ifdef CONFIG_PXA3xx
  35. extern unsigned pxa3xx_get_clk_frequency_khz(int);
  36. #else
  37. #define pxa3xx_get_clk_frequency_khz(x) (0)
  38. #endif
  39. extern struct syscore_ops pxa_irq_syscore_ops;
  40. extern struct syscore_ops pxa2xx_mfp_syscore_ops;
  41. extern struct syscore_ops pxa3xx_mfp_syscore_ops;
  42. void __init pxa_set_ffuart_info(void *info);
  43. void __init pxa_set_btuart_info(void *info);
  44. void __init pxa_set_stuart_info(void *info);
  45. void __init pxa_set_hwuart_info(void *info);
  46. void pxa_restart(char, const char *);