]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit002e0e70b3ca25ff5718858ba83dfcf35c5bd666
tree66b618a24bac394d129577d24ecfd423b467ebba
parent938f100ad910d276e1924e27423183a8ee755682
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