system.h 656 B

123456789101112131415161718192021222324252627
  1. /*
  2. * DaVinci system defines
  3. *
  4. * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
  5. *
  6. * 2007 (c) MontaVista Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #ifndef __ASM_ARCH_SYSTEM_H
  12. #define __ASM_ARCH_SYSTEM_H
  13. #include <mach/common.h>
  14. static inline void arch_idle(void)
  15. {
  16. cpu_do_idle();
  17. }
  18. static inline void arch_reset(char mode, const char *cmd)
  19. {
  20. if (davinci_soc_info.reset)
  21. davinci_soc_info.reset(davinci_soc_info.reset_device);
  22. }
  23. #endif /* __ASM_ARCH_SYSTEM_H */