linux-compat.h 518 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __LINUX_COMPAT_H__
  2. #define __LINUX_COMPAT_H__
  3. #include <malloc.h>
  4. #include <linux/list.h>
  5. #include <linux/compat.h>
  6. #define device_init_wakeup(dev, a) do {} while (0)
  7. #define platform_data device_data
  8. #ifndef wmb
  9. #define wmb() asm volatile ("" : : : "memory")
  10. #endif
  11. #define msleep(a) udelay(a * 1000)
  12. /*
  13. * Map U-Boot config options to Linux ones
  14. */
  15. #ifdef CONFIG_OMAP34XX
  16. #define CONFIG_SOC_OMAP3430
  17. #endif
  18. #ifdef CONFIG_OMAP44XX
  19. #define CONFIG_ARCH_OMAP4
  20. #endif
  21. #endif /* __LINUX_COMPAT_H__ */