system.h 535 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * arch/arm/mach-prima2/include/mach/system.h
  3. *
  4. * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #ifndef __MACH_SYSTEM_H__
  9. #define __MACH_SYSTEM_H__
  10. #include <linux/bitops.h>
  11. #include <mach/hardware.h>
  12. #define SIRFSOC_SYS_RST_BIT BIT(31)
  13. extern void __iomem *sirfsoc_rstc_base;
  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. writel(SIRFSOC_SYS_RST_BIT, sirfsoc_rstc_base);
  21. }
  22. #endif