mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
77777f769f
While there are a few different OMAP4 SoCs, today we always set CONFIG_OMAP4430 and CONFIG_OMAP44XX. Convert the few test of CONFIG_OMAP4430 to CONFIG_OMAP44XX. Cc: Marek Vasut <marex@denx.de> Cc: Paul Kocialkowski <contact@paulk.fr> Signed-off-by: Tom Rini <trini@konsulko.com>
37 lines
705 B
C
37 lines
705 B
C
#ifndef __LINUX_COMPAT_H__
|
|
#define __LINUX_COMPAT_H__
|
|
|
|
#include <malloc.h>
|
|
#include <linux/list.h>
|
|
#include <linux/compat.h>
|
|
|
|
#define pr_debug(fmt, args...) debug(fmt, ##args)
|
|
|
|
#define WARN(condition, fmt, args...) ({ \
|
|
int ret_warn = !!condition; \
|
|
if (ret_warn) \
|
|
printf(fmt, ##args); \
|
|
ret_warn; })
|
|
|
|
#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__ */
|