system.h 418 B

12345678910111213141516171819202122232425
  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. local_irq_disable();
  12. /*
  13. * Set then clear the SWRST bit to initiate a software reset
  14. */
  15. ep93xx_devcfg_set_bits(EP93XX_SYSCON_DEVCFG_SWRST);
  16. ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_SWRST);
  17. while (1)
  18. ;
  19. }