powerpc/boot: Add byteswapping routines in oflib
authorCédric Le Goater <clg@fr.ibm.com>
Thu, 24 Apr 2014 07:23:28 +0000 (09:23 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 07:35:35 +0000 (17:35 +1000)
commit926e6940f54313813d177b5cfb9ec31a441cd259
tree018b48b91e6556ef7dc184ae1545d050e57719a6
parent163bed77b97c2f1e941641f81566da8ea647deda
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>
arch/powerpc/boot/of.h
arch/powerpc/boot/ofconsole.c
arch/powerpc/boot/oflib.c