aboutsummaryrefslogtreecommitdiff
path: root/api
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 /api
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 'api')
-rw-r--r--api/api_platform-mips.c3
-rw-r--r--api/api_platform-powerpc.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/api/api_platform-mips.c b/api/api_platform-mips.c
index 51cd328..e150966 100644
--- a/api/api_platform-mips.c
+++ b/api/api_platform-mips.c
@@ -24,8 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
int platform_sys_info(struct sys_info *si)
{
- platform_set_mr(si, gd->bd->bi_memstart,
- gd->bd->bi_memsize, MR_ATTR_DRAM);
+ platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
return 1;
}
diff --git a/api/api_platform-powerpc.c b/api/api_platform-powerpc.c
index 15930cf..847a4a3 100644
--- a/api/api_platform-powerpc.c
+++ b/api/api_platform-powerpc.c
@@ -42,7 +42,7 @@ int platform_sys_info(struct sys_info *si)
si->bar = 0;
#endif
- platform_set_mr(si, gd->bd->bi_memstart, gd->bd->bi_memsize, MR_ATTR_DRAM);
+ platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
platform_set_mr(si, gd->bd->bi_flashstart, gd->bd->bi_flashsize, MR_ATTR_FLASH);
platform_set_mr(si, gd->bd->bi_sramstart, gd->bd->bi_sramsize, MR_ATTR_SRAM);