summaryrefslogtreecommitdiff
path: root/common/cmd_sata.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-04-18 17:41:04 +0900
committerTom Rini <trini@ti.com>2014-06-19 11:18:51 -0400
commitf18295d3837c282f10167502e25a964abb04acf7 (patch)
tree3515b13fbbea88e4d0cbccf452caca022af588c3 /common/cmd_sata.c
parent739a01ed8e02c3b79a0f059d34b749bfab1a30df (diff)
downloadu-boot-imx-f18295d3837c282f10167502e25a964abb04acf7.zip
u-boot-imx-f18295d3837c282f10167502e25a964abb04acf7.tar.gz
u-boot-imx-f18295d3837c282f10167502e25a964abb04acf7.tar.bz2
fdt_support: fix an endian bug of fdt_initrd()
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 <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cmd_sata.c')
0 files changed, 0 insertions, 0 deletions