system.h 639 B

123456789101112131415161718192021222324252627282930313233343536
  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/bridge-regs.h>
  11. static inline void arch_idle(void)
  12. {
  13. cpu_do_idle();
  14. }
  15. static inline void arch_reset(char mode, const char *cmd)
  16. {
  17. /*
  18. * Enable soft reset to assert RSTOUTn.
  19. */
  20. writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK);
  21. /*
  22. * Assert soft reset.
  23. */
  24. writel(SOFT_RESET, SYSTEM_SOFT_RESET);
  25. while (1)
  26. ;
  27. }
  28. #endif