X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Flibfdt_env.h;h=3e3defc76ca36068a297dab17623d9525e288ec4;hb=25b29921b2f5a9a133c6196afaf05fce1be9927b;hp=a7fd2f8d9a6aa43a63808a3327ddfb3521835e1d;hpb=cdeb62e20d94005f2e80604fda03b498c3a6f704;p=oweals%2Fu-boot.git diff --git a/include/libfdt_env.h b/include/libfdt_env.h index a7fd2f8d9a..3e3defc76c 100644 --- a/include/libfdt_env.h +++ b/include/libfdt_env.h @@ -21,21 +21,18 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H -#ifdef USE_HOSTCC -#include -#include -#else -#include -#include -#endif /* USE_HOSTCC */ +#include "compiler.h" +#include "linux/types.h" -#include -#include extern struct fdt_header *working_fdt; /* Pointer to the working fdt */ -#define fdt32_to_cpu(x) __be32_to_cpu(x) -#define cpu_to_fdt32(x) __cpu_to_be32(x) -#define fdt64_to_cpu(x) __be64_to_cpu(x) -#define cpu_to_fdt64(x) __cpu_to_be64(x) +typedef __be16 fdt16_t; +typedef __be32 fdt32_t; +typedef __be64 fdt64_t; + +#define fdt32_to_cpu(x) be32_to_cpu(x) +#define cpu_to_fdt32(x) cpu_to_be32(x) +#define fdt64_to_cpu(x) be64_to_cpu(x) +#define cpu_to_fdt64(x) cpu_to_be64(x) #endif /* _LIBFDT_ENV_H */