blob: 8829567bfb6811fa06e15dbd30e411d7f77408f5 [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>
Simon Glassdbd79542020-05-10 11:40:11 -06005#include <linux/delay.h>
Ilya Yanok06bb9202012-11-06 13:48:21 +00006#include <linux/list.h>
7#include <linux/compat.h>
8
Ilya Yanok06bb9202012-11-06 13:48:21 +00009#define device_init_wakeup(dev, a) do {} while (0)
10
11#define platform_data device_data
12
Ilya Yanokcc0fcbf2012-11-06 13:48:25 +000013#define msleep(a) udelay(a * 1000)
Ilya Yanoka3292f22012-11-06 13:48:29 +000014
15/*
16 * Map U-Boot config options to Linux ones
17 */
18#ifdef CONFIG_OMAP34XX
Tom Rini364d0022023-01-10 11:19:45 -050019#define CFG_SOC_OMAP3430
Ilya Yanoka3292f22012-11-06 13:48:29 +000020#endif
21
Tom Rini8d4bfb82017-05-12 22:33:19 -040022#ifdef CONFIG_OMAP44XX
Tom Rini364d0022023-01-10 11:19:45 -050023#define CFG_ARCH_OMAP4
Paul Kocialkowskid5a43ba2016-02-27 19:19:05 +010024#endif
25
Ilya Yanok06bb9202012-11-06 13:48:21 +000026#endif /* __LINUX_COMPAT_H__ */