aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/libfdt_env.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/boot/libfdt_env.h')
-rw-r--r--arch/powerpc/boot/libfdt_env.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/powerpc/boot/libfdt_env.h b/arch/powerpc/boot/libfdt_env.h
index c89fdb1b80e1..8dcd744e5728 100644
--- a/arch/powerpc/boot/libfdt_env.h
+++ b/arch/powerpc/boot/libfdt_env.h
@@ -4,15 +4,17 @@
4#include <types.h> 4#include <types.h>
5#include <string.h> 5#include <string.h>
6 6
7#include "of.h"
8
7typedef u32 uint32_t; 9typedef u32 uint32_t;
8typedef u64 uint64_t; 10typedef u64 uint64_t;
9typedef unsigned long uintptr_t; 11typedef unsigned long uintptr_t;
10 12
11#define fdt16_to_cpu(x) (x) 13#define fdt16_to_cpu(x) be16_to_cpu(x)
12#define cpu_to_fdt16(x) (x) 14#define cpu_to_fdt16(x) cpu_to_be16(x)
13#define fdt32_to_cpu(x) (x) 15#define fdt32_to_cpu(x) be32_to_cpu(x)
14#define cpu_to_fdt32(x) (x) 16#define cpu_to_fdt32(x) cpu_to_be32(x)
15#define fdt64_to_cpu(x) (x) 17#define fdt64_to_cpu(x) be64_to_cpu(x)
16#define cpu_to_fdt64(x) (x) 18#define cpu_to_fdt64(x) cpu_to_be64(x)
17 19
18#endif /* _ARCH_POWERPC_BOOT_LIBFDT_ENV_H */ 20#endif /* _ARCH_POWERPC_BOOT_LIBFDT_ENV_H */