diff options
| author | Tom Rini <trini@konsulko.com> | 2020-09-07 14:31:00 -0400 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2020-09-07 14:31:00 -0400 |
| commit | 314b9b4a38befd120ce1c566d9eea8e0ec9d8336 (patch) | |
| tree | 928486047400278e4a08469cd61a94aba690e868 /arch/mips/lib | |
| parent | 96d66a9b8ce11aae9f8bef5244b83b4740b37644 (diff) | |
| parent | bac9da46c57511e574aa7e763e17fdd6f55db5bb (diff) | |
Merge branch 'remove-config-nr-dram-banks-v9-2020-08-26' of https://gitlab.denx.de/u-boot/custodians/u-boot-marvell into next
Diffstat (limited to 'arch/mips/lib')
| -rw-r--r-- | arch/mips/lib/boot.c | 2 | ||||
| -rw-r--r-- | arch/mips/lib/bootm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/lib/boot.c b/arch/mips/lib/boot.c index db862f63792..6ef9109022e 100644 --- a/arch/mips/lib/boot.c +++ b/arch/mips/lib/boot.c @@ -17,7 +17,7 @@ unsigned long do_go_exec(ulong (*entry)(int, char * const []), * whole SDRAM area, since we don't know the size of the image * that was loaded. */ - flush_cache(gd->bd->bi_memstart, gd->ram_top - gd->bd->bi_memstart); + flush_cache(gd->ram_base, gd->ram_top - gd->ram_base); return entry(argc, argv); } diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index 0a13f6edb75..d5c99d891cd 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib/bootm.c @@ -242,7 +242,7 @@ static int boot_reloc_fdt(bootm_headers_t *images) #if CONFIG_IS_ENABLED(MIPS_BOOT_FDT) && CONFIG_IS_ENABLED(OF_LIBFDT) int arch_fixup_fdt(void *blob) { - u64 mem_start = virt_to_phys((void *)gd->bd->bi_memstart); + u64 mem_start = virt_to_phys((void *)gd->ram_base); u64 mem_size = gd->ram_size; return fdt_fixup_memory_banks(blob, &mem_start, &mem_size, 1); |
