system.h 396 B

1234567891011121314151617181920212223
  1. /*
  2. * linux/include/asm-arm/arch-cl7500/system.h
  3. *
  4. * Copyright (c) 1999 Nexus Electronics Ltd.
  5. */
  6. #ifndef __ASM_ARCH_SYSTEM_H
  7. #define __ASM_ARCH_SYSTEM_H
  8. #include <asm/hardware/iomd.h>
  9. #include <asm/io.h>
  10. static inline void arch_idle(void)
  11. {
  12. iomd_writeb(0, IOMD_SUSMODE);
  13. }
  14. #define arch_reset(mode) \
  15. do { \
  16. iomd_writeb(0, IOMD_ROMCR0); \
  17. cpu_reset(0); \
  18. } while (0)
  19. #endif