system.h 642 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * arch/arm/mach-loki/include/mach/system.h
  3. *
  4. * This file is licensed under the terms of the GNU General Public
  5. * License version 2. This program is licensed "as is" without any
  6. * warranty of any kind, whether express or implied.
  7. */
  8. #ifndef __ASM_ARCH_SYSTEM_H
  9. #define __ASM_ARCH_SYSTEM_H
  10. #include <mach/hardware.h>
  11. #include <mach/loki.h>
  12. static inline void arch_idle(void)
  13. {
  14. cpu_do_idle();
  15. }
  16. static inline void arch_reset(char mode)
  17. {
  18. /*
  19. * Enable soft reset to assert RSTOUTn.
  20. */
  21. writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK);
  22. /*
  23. * Assert soft reset.
  24. */
  25. writel(SOFT_RESET, SYSTEM_SOFT_RESET);
  26. while (1)
  27. ;
  28. }
  29. #endif