system.h 774 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * include/asm-arm/arch-ixp23xx/system.h
  3. *
  4. * Copyright (C) 2003 Intel Corporation.
  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 <asm/hardware.h>
  11. #include <asm/mach-types.h>
  12. static inline void arch_idle(void)
  13. {
  14. #if 0
  15. if (!hlt_counter)
  16. cpu_do_idle();
  17. #endif
  18. }
  19. static inline void arch_reset(char mode)
  20. {
  21. /* First try machine specific support */
  22. if (machine_is_ixdp2351()) {
  23. *IXDP2351_CPLD_RESET1_REG = IXDP2351_CPLD_RESET1_MAGIC;
  24. (void) *IXDP2351_CPLD_RESET1_REG;
  25. *IXDP2351_CPLD_RESET1_REG = IXDP2351_CPLD_RESET1_ENABLE;
  26. }
  27. /* Use on-chip reset capability */
  28. *IXP23XX_RESET0 |= IXP23XX_RST_ALL;
  29. }