aboutsummaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2020-08-12 13:16:36 +0200
committerStefan Roese <sr@denx.de>2020-08-26 09:19:34 +0200
commite207f2256f1fc3d0616608ab75e7dace15b0f9e6 (patch)
treeb30a56d09497505d7ed4fa711c87f339816b076a /arch/mips
parentf120aa7522fafa7606ae28693cc6f29be12e4887 (diff)
downloadu-boot-e207f2256f1fc3d0616608ab75e7dace15b0f9e6.zip
u-boot-e207f2256f1fc3d0616608ab75e7dace15b0f9e6.tar.gz
u-boot-e207f2256f1fc3d0616608ab75e7dace15b0f9e6.tar.bz2
global: Move from bi_memstart/memsize -> gd->ram_base/ram_size
With the planned removal of bi_memstart & bi_memsize, this patch now moves the references to the better suiting gd->ram_base/ram_size variables. Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/lib/boot.c2
-rw-r--r--arch/mips/lib/bootm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/lib/boot.c b/arch/mips/lib/boot.c
index db862f6..6ef9109 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 0a13f6e..d5c99d8 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);