system.h 397 B

1234567891011121314151617181920212223
  1. /*
  2. * arch/arm/mach-sa1100/include/mach/system.h
  3. *
  4. * Copyright (c) 1999 Nicolas Pitre <nico@fluxnic.net>
  5. */
  6. #include <mach/hardware.h>
  7. static inline void arch_idle(void)
  8. {
  9. cpu_do_idle();
  10. }
  11. static inline void arch_reset(char mode, const char *cmd)
  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. }