generic.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * linux/arch/arm/mach-at91/generic.h
  3. *
  4. * Copyright (C) 2005 David Brownell
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef _AT91_GENERIC_H
  11. #define _AT91_GENERIC_H
  12. #include <linux/of.h>
  13. #include <linux/reboot.h>
  14. /* Map io */
  15. extern void __init at91_map_io(void);
  16. extern void __init at91_alt_map_io(void);
  17. /* Timer */
  18. extern void at91rm9200_timer_init(void);
  19. /* idle */
  20. extern void at91rm9200_idle(void);
  21. extern void at91sam9_idle(void);
  22. /* Matrix */
  23. extern void at91_ioremap_matrix(u32 base_addr);
  24. #ifdef CONFIG_PM
  25. extern void __init at91rm9200_pm_init(void);
  26. extern void __init at91sam9260_pm_init(void);
  27. extern void __init at91sam9g45_pm_init(void);
  28. extern void __init at91sam9x5_pm_init(void);
  29. #else
  30. static inline void __init at91rm9200_pm_init(void) { }
  31. static inline void __init at91sam9260_pm_init(void) { }
  32. static inline void __init at91sam9g45_pm_init(void) { }
  33. static inline void __init at91sam9x5_pm_init(void) { }
  34. #endif
  35. #endif /* _AT91_GENERIC_H */