2012-11-06 13:48:21 +00:00
|
|
|
#ifndef __LINUX_COMPAT_H__
|
|
|
|
#define __LINUX_COMPAT_H__
|
|
|
|
|
|
|
|
#include <malloc.h>
|
|
|
|
#include <linux/list.h>
|
|
|
|
#include <linux/compat.h>
|
|
|
|
|
|
|
|
#define pr_debug(fmt, args...) debug(fmt, ##args)
|
|
|
|
|
|
|
|
#define WARN(condition, fmt, args...) ({ \
|
|
|
|
int ret_warn = !!condition; \
|
|
|
|
if (ret_warn) \
|
|
|
|
printf(fmt, ##args); \
|
|
|
|
ret_warn; })
|
|
|
|
|
|
|
|
#define device_init_wakeup(dev, a) do {} while (0)
|
|
|
|
|
|
|
|
#define platform_data device_data
|
|
|
|
|
|
|
|
#ifndef wmb
|
|
|
|
#define wmb() asm volatile ("" : : : "memory")
|
|
|
|
#endif
|
|
|
|
|
2012-11-06 13:48:25 +00:00
|
|
|
#define msleep(a) udelay(a * 1000)
|
2012-11-06 13:48:29 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Map U-Boot config options to Linux ones
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_OMAP34XX
|
|
|
|
#define CONFIG_SOC_OMAP3430
|
|
|
|
#endif
|
|
|
|
|
2016-02-27 18:19:05 +00:00
|
|
|
#ifdef CONFIG_OMAP4430
|
|
|
|
#define CONFIG_ARCH_OMAP4
|
|
|
|
#endif
|
|
|
|
|
2012-11-06 13:48:21 +00:00
|
|
|
#endif /* __LINUX_COMPAT_H__ */
|