generic.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. extern void __init at91_init_sram(int bank, unsigned long base,
  18. unsigned int length);
  19. /* Processors */
  20. extern void __init at91rm9200_set_type(int type);
  21. extern void __init at91rm9200_dt_initialize(void);
  22. extern void __init at91_dt_initialize(void);
  23. /* Interrupts */
  24. extern void __init at91_sysirq_mask_rtc(u32 rtc_base);
  25. extern void __init at91_sysirq_mask_rtt(u32 rtt_base);
  26. /* Timer */
  27. extern void at91rm9200_timer_init(void);
  28. /* idle */
  29. extern void at91sam9_idle(void);
  30. /* Matrix */
  31. extern void at91_ioremap_matrix(u32 base_addr);
  32. #endif /* _AT91_GENERIC_H */