Ilya Yanok | eb81955 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 1 | #ifndef __LINUX_COMPAT_H__ |
2 | #define __LINUX_COMPAT_H__ | ||||
3 | |||||
4 | #include <malloc.h> | ||||
Simon Glass | c05ed00 | 2020-05-10 11:40:11 -0600 | [diff] [blame] | 5 | #include <linux/delay.h> |
Ilya Yanok | eb81955 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 6 | #include <linux/list.h> |
7 | #include <linux/compat.h> | ||||
8 | |||||
Ilya Yanok | eb81955 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 9 | #define device_init_wakeup(dev, a) do {} while (0) |
10 | |||||
11 | #define platform_data device_data | ||||
12 | |||||
Ilya Yanok | 833a53c | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 13 | #define msleep(a) udelay(a * 1000) |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 14 | |
15 | /* | ||||
16 | * Map U-Boot config options to Linux ones | ||||
17 | */ | ||||
18 | #ifdef CONFIG_OMAP34XX | ||||
Tom Rini | 6e7df1d | 2023-01-10 11:19:45 -0500 | [diff] [blame] | 19 | #define CFG_SOC_OMAP3430 |
Ilya Yanok | 673a524 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 20 | #endif |
21 | |||||
Tom Rini | 77777f7 | 2017-05-12 22:33:19 -0400 | [diff] [blame] | 22 | #ifdef CONFIG_OMAP44XX |
Tom Rini | 6e7df1d | 2023-01-10 11:19:45 -0500 | [diff] [blame] | 23 | #define CFG_ARCH_OMAP4 |
Paul Kocialkowski | 27754d1 | 2016-02-27 19:19:05 +0100 | [diff] [blame] | 24 | #endif |
25 | |||||
Ilya Yanok | eb81955 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 26 | #endif /* __LINUX_COMPAT_H__ */ |