system.h 395 B

12345678910111213141516171819202122
  1. /*
  2. * arch/arm/mach-ep93xx/include/mach/system.h
  3. */
  4. #include <mach/hardware.h>
  5. static inline void arch_idle(void)
  6. {
  7. cpu_do_idle();
  8. }
  9. static inline void arch_reset(char mode, const char *cmd)
  10. {
  11. /*
  12. * Set then clear the SWRST bit to initiate a software reset
  13. */
  14. ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_SWRST);
  15. ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_SWRST);
  16. while (1)
  17. ;
  18. }