diff options
author | Stefan Roese <sr@denx.de> | 2020-08-12 13:16:36 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2020-08-26 09:19:34 +0200 |
commit | e207f2256f1fc3d0616608ab75e7dace15b0f9e6 (patch) | |
tree | b30a56d09497505d7ed4fa711c87f339816b076a /arch/xtensa | |
parent | f120aa7522fafa7606ae28693cc6f29be12e4887 (diff) | |
download | u-boot-e207f2256f1fc3d0616608ab75e7dace15b0f9e6.tar.gz u-boot-e207f2256f1fc3d0616608ab75e7dace15b0f9e6.tar.bz2 u-boot-e207f2256f1fc3d0616608ab75e7dace15b0f9e6.zip |
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/xtensa')
-rw-r--r-- | arch/xtensa/lib/bootm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/xtensa/lib/bootm.c b/arch/xtensa/lib/bootm.c index 458eaf95c0..0e564507f9 100644 --- a/arch/xtensa/lib/bootm.c +++ b/arch/xtensa/lib/bootm.c @@ -41,15 +41,14 @@ static struct bp_tag *setup_last_tag(struct bp_tag *params) static struct bp_tag *setup_memory_tag(struct bp_tag *params) { - struct bd_info *bd = gd->bd; struct meminfo *mem; params->id = BP_TAG_MEMORY; params->size = sizeof(struct meminfo); mem = (struct meminfo *)params->data; mem->type = MEMORY_TYPE_CONVENTIONAL; - mem->start = bd->bi_memstart; - mem->end = bd->bi_memstart + bd->bi_memsize; + mem->start = PHYSADDR(gd->ram_base); + mem->end = PHYSADDR(gd->ram_base + gd->ram_size); printf(" MEMORY: tag:0x%04x, type:0X%lx, start:0X%lx, end:0X%lx\n", BP_TAG_MEMORY, mem->type, mem->start, mem->end); |