/Test/bug1764143.h

http://github.com/fishman/ctags · C Header · 27 lines · 20 code · 3 blank · 4 comment · 3 complexity · 75b900ccc298d6d79cef161d35f47cc4 MD5 · raw file

  1. static inline void omap1_arch_reset(char mode)
  2. {
  3. /*
  4. * Workaround for 5912/1611b bug mentioned in sprz209d.pdf p. 28
  5. * "Global Software Reset Affects Traffic Controller Frequency".
  6. */
  7. if (cpu_is_omap5912()) {
  8. omap_writew(omap_readw(DPLL_CTL) & ~(1 << 4),
  9. DPLL_CTL);
  10. omap_writew(0x8, ARM_RSTCT1);
  11. }
  12. if (machine_is_voiceblue())
  13. voiceblue_reset();
  14. else
  15. omap_writew(1, ARM_RSTCT1);
  16. }
  17. static inline void arch_reset(char mode)
  18. {
  19. if (!cpu_is_omap24xx())
  20. omap1_arch_reset(mode);
  21. else
  22. omap_prcm_arch_reset(mode);
  23. }
  24. #endif