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