system.h 375 B

12345678910111213141516171819202122
  1. /*
  2. * linux/include/asm-arm/arch-sa1100/system.h
  3. *
  4. * Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
  5. */
  6. #include <asm/hardware.h>
  7. static inline void arch_idle(void)
  8. {
  9. cpu_do_idle();
  10. }
  11. static inline void arch_reset(char mode)
  12. {
  13. if (mode == 's') {
  14. /* Jump into ROM at address 0 */
  15. cpu_reset(0);
  16. } else {
  17. /* Use on-chip reset capability */
  18. RSRR = RSRR_SWR;
  19. }
  20. }