mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-07 05:34:28 +00:00
c05ed00afb
Move this uncommon header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
30 lines
543 B
C
30 lines
543 B
C
#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
|
|
|
|
#ifndef wmb
|
|
#define wmb() asm volatile ("" : : : "memory")
|
|
#endif
|
|
|
|
#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__ */
|