aboutsummaryrefslogtreecommitdiff
path: root/board/ids8247
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-11-27 21:59:46 -0600
committerGerald Van Baren <vanbaren@cideas.com>2007-12-07 20:51:25 -0500
commit246d4ae6bc282bc1841224e1c5fc49dc925e0bf7 (patch)
tree84fb928c64281c6aaff95c1aa1868543ddf453d6 /board/ids8247
parent151c8b09b35eebe8fd9139cb6c1d91c27b22f058 (diff)
downloadu-boot-246d4ae6bc282bc1841224e1c5fc49dc925e0bf7.zip
u-boot-246d4ae6bc282bc1841224e1c5fc49dc925e0bf7.tar.gz
u-boot-246d4ae6bc282bc1841224e1c5fc49dc925e0bf7.tar.bz2
Convert boards that set memory node to use fdt_fixup_memory()
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/ids8247')
-rw-r--r--board/ids8247/ids8247.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/board/ids8247/ids8247.c b/board/ids8247/ids8247.c
index d1d8c56..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_path_offset (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)