rc32434.h 504 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Definitions for IDT RC323434 CPU.
  3. */
  4. #ifndef _ASM_RC32434_RC32434_H_
  5. #define _ASM_RC32434_RC32434_H_
  6. #include <linux/delay.h>
  7. #include <linux/io.h>
  8. #define IDT_CLOCK_MULT 2
  9. /* cpu pipeline flush */
  10. static inline void rc32434_sync(void)
  11. {
  12. __asm__ volatile ("sync");
  13. }
  14. static inline void rc32434_sync_udelay(int us)
  15. {
  16. __asm__ volatile ("sync");
  17. udelay(us);
  18. }
  19. static inline void rc32434_sync_delay(int ms)
  20. {
  21. __asm__ volatile ("sync");
  22. mdelay(ms);
  23. }
  24. #endif /* _ASM_RC32434_RC32434_H_ */