system.h 707 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * arch/arm/mach-h720x/include/mach/system.h
  3. *
  4. * Copyright (C) 2001-2002 Jungjun Kim, Hynix Semiconductor Inc.
  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. * arch/arm/mach-h720x/include/mach/system.h
  10. *
  11. */
  12. #ifndef __ASM_ARCH_SYSTEM_H
  13. #define __ASM_ARCH_SYSTEM_H
  14. #include <mach/hardware.h>
  15. static void arch_idle(void)
  16. {
  17. CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_IDLE;
  18. nop();
  19. nop();
  20. CPU_REG (PMU_BASE, PMU_MODE) = PMU_MODE_RUN;
  21. nop();
  22. nop();
  23. }
  24. static __inline__ void arch_reset(char mode)
  25. {
  26. CPU_REG (PMU_BASE, PMU_STAT) |= PMU_WARMRESET;
  27. }
  28. #endif