system.h 819 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copied from linux/include/asm-arm/arch-sa1100/system.h
  3. * Copyright (c) 1999 Nicolas Pitre <nico@cam.org>
  4. */
  5. #ifndef __ASM_ARCH_SYSTEM_H
  6. #define __ASM_ARCH_SYSTEM_H
  7. #include <linux/config.h>
  8. #include <asm/mach-types.h>
  9. #include <asm/arch/hardware.h>
  10. #include <asm/mach-types.h>
  11. static inline void arch_idle(void)
  12. {
  13. cpu_do_idle();
  14. }
  15. static inline void arch_reset(char mode)
  16. {
  17. #ifdef CONFIG_ARCH_OMAP16XX
  18. /*
  19. * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
  20. * "Global Software Reset Affects Traffic Controller Frequency".
  21. */
  22. if (cpu_is_omap5912()) {
  23. omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4),
  24. DPLL_CTL);
  25. omap_writew(0x8, ARM_RSTCT1);
  26. }
  27. #endif
  28. #ifdef CONFIG_MACH_VOICEBLUE
  29. if (machine_is_voiceblue())
  30. voiceblue_reset();
  31. else
  32. #endif
  33. omap_writew(1, ARM_RSTCT1);
  34. }
  35. #endif