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