system.h 401 B

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