blob: f366ae58e877e6c5e80e803f7bd91e5d88d141c2 [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 device_init_wakeup(dev, a) do {} while (0)
9
10#define platform_data device_data
11
12#ifndef wmb
13#define wmb() asm volatile ("" : : : "memory")
14#endif
15
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000016#define msleep(a) udelay(a * 1000)
Ilya Yanoka3292f22012-11-06 13:48:29 +000017
18/*
19 * Map U-Boot config options to Linux ones
20 */
21#ifdef CONFIG_OMAP34XX
22#define CONFIG_SOC_OMAP3430
23#endif
24
Tom Rini8d4bfb82017-05-12 22:33:19 -040025#ifdef CONFIG_OMAP44XX
Paul Kocialkowskid5a43ba2016-02-27 19:19:05 +010026#define CONFIG_ARCH_OMAP4
27#endif
28
Ilya Yanok06bb9202012-11-06 13:48:21 +000029#endif /* __LINUX_COMPAT_H__ */