common/cmd_fdt.c: fix wrong data displayed in fdt print
authorHaojian Zhuang <haojian.zhuang@gmail.com>
Sun, 22 May 2011 21:53:30 +0000 (21:53 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 1 Jun 2011 20:44:50 +0000 (22:44 +0200)
commitb79003627d0cf5ec1443e40d8faa7471657f0f33
tree65210f6037f65e0b5dfa3b5c5873ebf32d023528
parentd6840e3d7abb71c2a45c3788dcc6edf7feb1d303
common/cmd_fdt.c: fix wrong data displayed in fdt print

All data in dtb is big endian. Some ARM devices are little-endian.
In print_data(), it displays data with big-endian format. For ARM device,
data should be converted to little-endian first.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Gerald Van Baren <vanbaren@cideas.com>
common/cmd_fdt.c