powerpc/boot/fdt: Add little-endian support to libfdt wrappers
authorJeremy Kerr <jk@ozlabs.org>
Wed, 11 Feb 2015 04:55:44 +0000 (12:55 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Mar 2015 07:58:31 +0000 (18:58 +1100)
commit6c87b2202f5414be3acae9df2e1833e8b46c5688
tree66b618a24bac394d129577d24ecfd423b467ebba
parent1680e4ba3d4f0ab12c387975584924f585fc77eb
powerpc/boot/fdt: Add little-endian support to libfdt wrappers

For epapr-style boot, we may be little-endian. This change implements
the proper conversion for fdt*_to_cpu and cpu_to_fdt*. We also need the
full cpu_to_* and *_to_cpu macros for this.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/libfdt_env.h
arch/powerpc/boot/of.h