summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot/of.h
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2014-04-24 11:23:28 +0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-28 11:35:35 +0400
commit926e6940f54313813d177b5cfb9ec31a441cd259 (patch)
tree018b48b91e6556ef7dc184ae1545d050e57719a6 /arch/powerpc/boot/of.h
parent163bed77b97c2f1e941641f81566da8ea647deda (diff)
downloadlinux-926e6940f54313813d177b5cfb9ec31a441cd259.tar.xz
powerpc/boot: Add byteswapping routines in oflib
Values will need to be byte-swapped when calling prom (big endian) from a little endian boot wrapper. Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/of.h')
-rw-r--r--arch/powerpc/boot/of.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/boot/of.h b/arch/powerpc/boot/of.h
index 5da03d9b9463..40d95bf7402b 100644
--- a/arch/powerpc/boot/of.h
+++ b/arch/powerpc/boot/of.h
@@ -20,4 +20,7 @@ void of_console_init(void);
typedef u32 __be32;
+#define cpu_to_be32(x) (x)
+#define be32_to_cpu(x) (x)
+
#endif /* _PPC_BOOT_OF_H_ */