diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2011-05-22 21:53:30 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-06-01 22:44:50 +0200 |
commit | b79003627d0cf5ec1443e40d8faa7471657f0f33 (patch) | |
tree | 65210f6037f65e0b5dfa3b5c5873ebf32d023528 /common | |
parent | d6840e3d7abb71c2a45c3788dcc6edf7feb1d303 (diff) | |
download | u-boot-imx-b79003627d0cf5ec1443e40d8faa7471657f0f33.zip u-boot-imx-b79003627d0cf5ec1443e40d8faa7471657f0f33.tar.gz u-boot-imx-b79003627d0cf5ec1443e40d8faa7471657f0f33.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c index 3d0c2b7..9bdecca 100644 --- a/common/cmd_fdt.c +++ b/common/cmd_fdt.c @@ -665,7 +665,7 @@ static void print_data(const void *data, int len) printf("<"); for (j = 0, p = data; j < len/4; j ++) - printf("0x%x%s", p[j], j < (len/4 - 1) ? " " : ""); + printf("0x%x%s", fdt32_to_cpu(p[j]), j < (len/4 - 1) ? " " : ""); printf(">"); } else { /* anything else... hexdump */ const u8 *s; |