system.h 627 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * include/asm-arm/arch-orion/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 <asm/arch/hardware.h>
  13. #include <asm/arch/orion.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. orion_setbits(CPU_RESET_MASK, (1 << 2));
  24. orion_setbits(CPU_SOFT_RESET, 1);
  25. }
  26. #endif