system.h 551 B

1234567891011121314151617181920212223242526
  1. /*
  2. * linux/arch/arm/mach-mmp/include/mach/system.h
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_MACH_SYSTEM_H
  9. #define __ASM_MACH_SYSTEM_H
  10. #include <mach/cputype.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. if (cpu_is_pxa168())
  18. cpu_reset(0xffff0000);
  19. else
  20. cpu_reset(0);
  21. }
  22. #endif /* __ASM_MACH_SYSTEM_H */