blob: 4dae83ed6850350470a334f2bbaf2dd5dd093f12 [file] [log] [blame]
Ilya Yanok06bb9202012-11-06 13:48:21 +00001#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
Ilya Yanok06bb9202012-11-06 13:48:21 +00008#define pr_debug(fmt, args...) debug(fmt, ##args)
Ilya Yanok06bb9202012-11-06 13:48:21 +00009
10#define WARN(condition, fmt, args...) ({ \
11 int ret_warn = !!condition; \
12 if (ret_warn) \
13 printf(fmt, ##args); \
14 ret_warn; })
15
Ilya Yanok06bb9202012-11-06 13:48:21 +000016#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
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000024#define msleep(a) udelay(a * 1000)
Ilya Yanoka3292f22012-11-06 13:48:29 +000025
26/*
27 * Map U-Boot config options to Linux ones
28 */
29#ifdef CONFIG_OMAP34XX
30#define CONFIG_SOC_OMAP3430
31#endif
32
Tom Rini8d4bfb82017-05-12 22:33:19 -040033#ifdef CONFIG_OMAP44XX
Paul Kocialkowskid5a43ba2016-02-27 19:19:05 +010034#define CONFIG_ARCH_OMAP4
35#endif
36
Ilya Yanok06bb9202012-11-06 13:48:21 +000037#endif /* __LINUX_COMPAT_H__ */