On 17 April 2014 22:41, Masahiro Yamada <yamad...@jp.panasonic.com> wrote:
> Data written to DTB must be converted to big endian order.
> It is usually done by using cpu_to_fdt32(), cpu_to_fdt64(), etc.
>
> fdt_initrd() invoked write_cell(), which always swaps byte order.
> It means the function only worked on little endian architectures.
> (On big endian architectures, the byte order should be kept as it is)
>
> This commit uses cpu_to_fdt32() and cpu_to_fdt64()
> and deletes write_cell().
>
> Signed-off-by: Masahiro Yamada <yamad...@jp.panasonic.com>

Acked-by: Simon Glass <s...@chromium.org>

> ---
>
> Changes in v2: None
>
>  common/fdt_support.c | 41 ++++++++++++++++++++---------------------
>  1 file changed, 20 insertions(+), 21 deletions(-)
>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to