system.h 622 B

12345678910111213141516171819202122232425262728293031
  1. /* linux/arch/arm/mach-s5pc100/include/mach/system.h
  2. *
  3. * Copyright 2009 Samsung Electronics Co.
  4. * Byungho Min <bhmin@samsung.com>
  5. *
  6. * S5PC1XX - system implementation
  7. *
  8. * Based on mach-s3c6400/include/mach/system.h
  9. */
  10. #ifndef __ASM_ARCH_SYSTEM_H
  11. #define __ASM_ARCH_SYSTEM_H __FILE__
  12. #include <linux/io.h>
  13. #include <mach/map.h>
  14. #include <plat/regs-clock.h>
  15. void (*s5pc1xx_idle)(void);
  16. static void arch_idle(void)
  17. {
  18. if (s5pc1xx_idle)
  19. s5pc1xx_idle();
  20. }
  21. static void arch_reset(char mode, const char *cmd)
  22. {
  23. __raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET);
  24. return;
  25. }
  26. #endif /* __ASM_ARCH_IRQ_H */