diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-04-18 08:41:03 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-19 15:18:51 (GMT) |
commit | 739a01ed8e02c3b79a0f059d34b749bfab1a30df (patch) | |
tree | 79dd718c9fa35727729b67d33fc61330ecf3efac /common/exports.c | |
parent | f89d482fe5a95db637190cd49e1954588995d881 (diff) | |
download | u-boot-739a01ed8e02c3b79a0f059d34b749bfab1a30df.tar.xz |
fdt_support: fix an endian bug of fdt_fixup_memory_banks
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_fixup_memory_banks() invoked write_cell(), which always
swaps byte order.
It means the function only worked on little endian architectures.
This commit adds and uses a new helper function, fdt_pack_reg(),
which works on both big endian and little endian architrectures.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/exports.c')
0 files changed, 0 insertions, 0 deletions