system.h 626 B

12345678910111213141516171819202122232425262728293031
  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/bridge-regs.h>
  13. static inline void arch_idle(void)
  14. {
  15. cpu_do_idle();
  16. }
  17. static inline void arch_reset(char mode, const char *cmd)
  18. {
  19. /*
  20. * Enable and issue soft reset
  21. */
  22. orion5x_setbits(RSTOUTn_MASK, (1 << 2));
  23. orion5x_setbits(CPU_SOFT_RESET, 1);
  24. }
  25. #endif