system.h 634 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * arch/arm/mach-orion5x/include/mach/system.h
  3. *
  4. * Tzachi Perelstein <tzachi@marvell.com>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #ifndef __ASM_ARCH_SYSTEM_H
  11. #define __ASM_ARCH_SYSTEM_H
  12. #include <mach/hardware.h>
  13. #include <mach/orion5x.h>
  14. static inline void arch_idle(void)
  15. {
  16. cpu_do_idle();
  17. }
  18. static inline void arch_reset(char mode)
  19. {
  20. /*
  21. * Enable and issue soft reset
  22. */
  23. orion5x_setbits(CPU_RESET_MASK, (1 << 2));
  24. orion5x_setbits(CPU_SOFT_RESET, 1);
  25. }
  26. #endif