Ilya Yanok | 06bb920 | 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 | dbd7954 | 2020-05-10 11:40:11 -0600 | [diff] [blame] | 5 | #include <linux/delay.h> |
Ilya Yanok | 06bb920 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 6 | #include <linux/list.h> |
| 7 | #include <linux/compat.h> |
| 8 | |
Ilya Yanok | 06bb920 | 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 | |
| 13 | #ifndef wmb |
| 14 | #define wmb() asm volatile ("" : : : "memory") |
| 15 | #endif |
| 16 | |
Ilya Yanok | cc0fcbf | 2012-11-06 13:48:25 +0000 | [diff] [blame] | 17 | #define msleep(a) udelay(a * 1000) |
Ilya Yanok | a3292f2 | 2012-11-06 13:48:29 +0000 | [diff] [blame] | 18 | |
| 19 | /* |
| 20 | * Map U-Boot config options to Linux ones |
| 21 | */ |
| 22 | #ifdef CONFIG_OMAP34XX |
| 23 | #define CONFIG_SOC_OMAP3430 |
| 24 | #endif |
| 25 | |
Tom Rini | 8d4bfb8 | 2017-05-12 22:33:19 -0400 | [diff] [blame] | 26 | #ifdef CONFIG_OMAP44XX |
Paul Kocialkowski | d5a43ba | 2016-02-27 19:19:05 +0100 | [diff] [blame] | 27 | #define CONFIG_ARCH_OMAP4 |
| 28 | #endif |
| 29 | |
Ilya Yanok | 06bb920 | 2012-11-06 13:48:21 +0000 | [diff] [blame] | 30 | #endif /* __LINUX_COMPAT_H__ */ |