2012-11-06 13:48:21 +00:00
|
|
|
#ifndef __LINUX_COMPAT_H__
|
|
|
|
#define __LINUX_COMPAT_H__
|
|
|
|
|
|
|
|
#include <malloc.h>
|
2020-05-10 17:40:11 +00:00
|
|
|
#include <linux/delay.h>
|
2012-11-06 13:48:21 +00:00
|
|
|
#include <linux/list.h>
|
|
|
|
#include <linux/compat.h>
|
|
|
|
|
|
|
|
#define device_init_wakeup(dev, a) do {} while (0)
|
|
|
|
|
|
|
|
#define platform_data device_data
|
|
|
|
|
2012-11-06 13:48:25 +00:00
|
|
|
#define msleep(a) udelay(a * 1000)
|
2012-11-06 13:48:29 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Map U-Boot config options to Linux ones
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_OMAP34XX
|
2023-01-10 16:19:45 +00:00
|
|
|
#define CFG_SOC_OMAP3430
|
2012-11-06 13:48:29 +00:00
|
|
|
#endif
|
|
|
|
|
2017-05-13 02:33:19 +00:00
|
|
|
#ifdef CONFIG_OMAP44XX
|
2023-01-10 16:19:45 +00:00
|
|
|
#define CFG_ARCH_OMAP4
|
2016-02-27 18:19:05 +00:00
|
|
|
#endif
|
|
|
|
|
2012-11-06 13:48:21 +00:00
|
|
|
#endif /* __LINUX_COMPAT_H__ */
|