aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/drivers/usb/musb-new/linux-compat.h
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/u-boot/drivers/usb/musb-new/linux-compat.h
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/u-boot/drivers/usb/musb-new/linux-compat.h')
-rw-r--r--roms/u-boot/drivers/usb/musb-new/linux-compat.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/roms/u-boot/drivers/usb/musb-new/linux-compat.h b/roms/u-boot/drivers/usb/musb-new/linux-compat.h
new file mode 100644
index 000000000..6d9f19dfe
--- /dev/null
+++ b/roms/u-boot/drivers/usb/musb-new/linux-compat.h
@@ -0,0 +1,26 @@
+#ifndef __LINUX_COMPAT_H__
+#define __LINUX_COMPAT_H__
+
+#include <malloc.h>
+#include <linux/delay.h>
+#include <linux/list.h>
+#include <linux/compat.h>
+
+#define device_init_wakeup(dev, a) do {} while (0)
+
+#define platform_data device_data
+
+#define msleep(a) udelay(a * 1000)
+
+/*
+ * Map U-Boot config options to Linux ones
+ */
+#ifdef CONFIG_OMAP34XX
+#define CONFIG_SOC_OMAP3430
+#endif
+
+#ifdef CONFIG_OMAP44XX
+#define CONFIG_ARCH_OMAP4
+#endif
+
+#endif /* __LINUX_COMPAT_H__ */