blob: 7bb53d2b198ed4269abdc6168a205774b1d281be [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 WARN(condition, fmt, args...) ({ \
9 int ret_warn = !!condition; \
10 if (ret_warn) \
11 printf(fmt, ##args); \
12 ret_warn; })
13
Ilya Yanok06bb9202012-11-06 13:48:21 +000014#define device_init_wakeup(dev, a) do {} while (0)
15
16#define platform_data device_data
17
18#ifndef wmb
19#define wmb() asm volatile ("" : : : "memory")
20#endif
21
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000022#define msleep(a) udelay(a * 1000)
Ilya Yanoka3292f22012-11-06 13:48:29 +000023
24/*
25 * Map U-Boot config options to Linux ones
26 */
27#ifdef CONFIG_OMAP34XX
28#define CONFIG_SOC_OMAP3430
29#endif
30
Tom Rini8d4bfb82017-05-12 22:33:19 -040031#ifdef CONFIG_OMAP44XX
Paul Kocialkowskid5a43ba2016-02-27 19:19:05 +010032#define CONFIG_ARCH_OMAP4
33#endif
34
Ilya Yanok06bb9202012-11-06 13:48:21 +000035#endif /* __LINUX_COMPAT_H__ */