Commit fdff5b05 authored by Purna Chandra Mandal's avatar Purna Chandra Mandal Committed by Daniel Schwierzeck
Browse files

MIPS: bootm: Add fixup of '/memory' node.

MIPS arch do not update 'reg' property of /memory node.
As a result Linux bootup will not work unless board.dts
file contains right /memory offset-size information or
board implements required memory fixup.
Fixing by renaming (unused) _arch_fixup_memory_node_ to
_arch_fixup_fdt_ in arch/mips/lib/bootm.c inline with ARM arch.
Signed-off-by: default avatarPurna Chandra Mandal <>
Cc: Daniel Schwierzeck <>
parent 108f8418
......@@ -9,6 +9,7 @@
#include <image.h>
#include <fdt_support.h>
#include <asm/addrspace.h>
#include <asm/io.h>
......@@ -252,10 +253,10 @@ static int boot_reloc_fdt(bootm_headers_t *images)
int arch_fixup_memory_node(void *blob)
int arch_fixup_fdt(void *blob)
u64 mem_start = 0;
u64 mem_start = virt_to_phys((void *)gd->bd->bi_memstart);
u64 mem_size = gd->ram_size;
return fdt_fixup_memory_banks(blob, &mem_start, &mem_size, 1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment