system.h 649 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * arch/arm/mach-iop13xx/include/mach/system.h
  3. *
  4. * Copyright (C) 2004 Intel Corp.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <mach/iop13xx.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. * Reset the internal bus (warning both cores are reset)
  19. */
  20. write_wdtcr(IOP_WDTCR_EN_ARM);
  21. write_wdtcr(IOP_WDTCR_EN);
  22. write_wdtsr(IOP13XX_WDTSR_WRITE_EN | IOP13XX_WDTCR_IB_RESET);
  23. write_wdtcr(0x1000);
  24. for(;;);
  25. }