]> git.ipfire.org Git - people/ms/u-boot.git/blame - drivers/usb/musb-new/linux-compat.h
Merge git://git.denx.de/u-boot-mpc85xx
[people/ms/u-boot.git] / drivers / usb / musb-new / linux-compat.h
CommitLineData
eb81955b
IY
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
eb81955b 8#define pr_debug(fmt, args...) debug(fmt, ##args)
eb81955b
IY
9
10#define WARN(condition, fmt, args...) ({ \
11 int ret_warn = !!condition; \
12 if (ret_warn) \
13 printf(fmt, ##args); \
14 ret_warn; })
15
eb81955b
IY
16#define device_init_wakeup(dev, a) do {} while (0)
17
18#define platform_data device_data
19
20#ifndef wmb
21#define wmb() asm volatile ("" : : : "memory")
22#endif
23
833a53c6 24#define msleep(a) udelay(a * 1000)
673a524b
IY
25
26/*
27 * Map U-Boot config options to Linux ones
28 */
29#ifdef CONFIG_OMAP34XX
30#define CONFIG_SOC_OMAP3430
31#endif
32
77777f76 33#ifdef CONFIG_OMAP44XX
27754d18
PK
34#define CONFIG_ARCH_OMAP4
35#endif
36
eb81955b 37#endif /* __LINUX_COMPAT_H__ */