]> git.sur5r.net Git - u-boot/blobdiff - include/libfdt_env.h
Merge git://git.denx.de/u-boot-cfi-flash
[u-boot] / include / libfdt_env.h
index 59f2536d286fecd1cd1dd18bf39cf912c71a4cd0..d7e9d3286354070b6c9501bce9ad88ac495c271b 100644 (file)
@@ -1,22 +1,5 @@
-#ifndef _LIBFDT_ENV_H
-#define _LIBFDT_ENV_H
-
-#include <stddef.h>
-#include <stdint.h>
-#include <string.h>
-#include <endian.h>
-#include <byteswap.h>
-
-#if __BYTE_ORDER == __BIG_ENDIAN
-#define fdt32_to_cpu(x)                (x)
-#define cpu_to_fdt32(x)                (x)
-#define fdt64_to_cpu(x)                (x)
-#define cpu_to_fdt64(x)                (x)
+#ifdef USE_HOSTCC
+#include "../scripts/dtc/libfdt/libfdt_env.h"
 #else
-#define fdt32_to_cpu(x)                (bswap_32((x)))
-#define cpu_to_fdt32(x)                (bswap_32((x)))
-#define fdt64_to_cpu(x)                (bswap_64((x)))
-#define cpu_to_fdt64(x)                (bswap_64((x)))
+#include <linux/libfdt_env.h>
 #endif
-
-#endif /* _LIBFDT_ENV_H */