diff options
author | Stefan Roese <sr@denx.de> | 2007-12-13 14:02:42 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-12-13 14:02:42 +0100 |
commit | a449c500b1abf8d63e774145f85c35efaecef3e5 (patch) | |
tree | 5eb76028f283023d1d443cdb52598e13b69b6c19 /board/ids8247/ids8247.c | |
parent | 3b9abdc448a1c2c6a4c2aa292724b4d1a05166a9 (diff) | |
parent | c01b17dd856fa120b2970f50d9598546a4927ec3 (diff) | |
download | u-boot-imx-a449c500b1abf8d63e774145f85c35efaecef3e5.zip u-boot-imx-a449c500b1abf8d63e774145f85c35efaecef3e5.tar.gz u-boot-imx-a449c500b1abf8d63e774145f85c35efaecef3e5.tar.bz2 |
Merge commit 'u-boot-fdt/testing'
Diffstat (limited to 'board/ids8247/ids8247.c')
-rw-r--r-- | board/ids8247/ids8247.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/board/ids8247/ids8247.c b/board/ids8247/ids8247.c index b05424d..7176770 100644 --- a/board/ids8247/ids8247.c +++ b/board/ids8247/ids8247.c @@ -329,25 +329,14 @@ nand_init (void) */ void ft_blob_update(void *blob, bd_t *bd) { - int ret, nodeoffset = 0; - ulong memory_data[2] = {0}; + int ret; - memory_data[0] = cpu_to_be32(bd->bi_memstart); - memory_data[1] = cpu_to_be32(bd->bi_memsize); + ret = fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); - nodeoffset = fdt_find_node_by_path (blob, "/memory"); - if (nodeoffset >= 0) { - ret = fdt_setprop(blob, nodeoffset, "reg", memory_data, - sizeof(memory_data)); - if (ret < 0) + if (ret < 0) { printf("ft_blob_update): cannot set /memory/reg " "property err:%s\n", fdt_strerror(ret)); } - else { - /* memory node is required in dts */ - printf("ft_blob_update(): cannot find /memory node " - "err:%s\n", fdt_strerror(nodeoffset)); - } } void ft_board_setup(void *blob, bd_t *bd) |