X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flibfdt_env.h;h=bf63583d53a9adcea1d9151698b5a9fc03d4e157;hb=544aa66a6695790227613bf32bdf672143d5a1ad;hp=671c3a8981ad5071f3ec024fc97649a6ec93a7f4;hpb=ce0eb70333331da6942167c41e6841c8c7994a33;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/libfdt_env.h b/include/libfdt_env.h index 671c3a8..bf63583 100644 --- a/include/libfdt_env.h +++ b/include/libfdt_env.h @@ -21,33 +21,13 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H -#ifdef USE_HOSTCC -#include -#include -#else -#include -#include -#endif /* USE_HOSTCC */ +#include "compiler.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) - -/* - * Types for `void *' pointers. - * - * Note: libfdt uses this definition from /usr/include/stdint.h. - * Define it here rather than pulling in all of stdint.h. - */ -#if __WORDSIZE == 64 -typedef unsigned long int uintptr_t; -#else -typedef unsigned int uintptr_t; -#endif +#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 */