Commit 1473b12ad0b33771ded1b2fd6b73d2cd6d73b8f7
Committed by
Michal Simek
1 parent
f4da871a7f
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
lib: fdtdec: Update ram_base to store ram start adddress
This patch updates the ram_base to store the start address of the first bank DRAM and the use this ram_base to calculate ram_top properly. This patch fixes the erroneous calculation of ram_top incase of non zero ram start address. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 2 changed files with 3 additions and 2 deletions Side-by-side Diff
common/board_f.c
... | ... | @@ -281,9 +281,9 @@ |
281 | 281 | gd->ram_size -= CONFIG_SYS_MEM_TOP_HIDE; |
282 | 282 | #endif |
283 | 283 | #ifdef CONFIG_SYS_SDRAM_BASE |
284 | - gd->ram_top = CONFIG_SYS_SDRAM_BASE; | |
284 | + gd->ram_base = CONFIG_SYS_SDRAM_BASE; | |
285 | 285 | #endif |
286 | - gd->ram_top += get_effective_memsize(); | |
286 | + gd->ram_top = gd->ram_base + get_effective_memsize(); | |
287 | 287 | gd->ram_top = board_get_usable_ram_top(gd->mon_len); |
288 | 288 | gd->relocaddr = gd->ram_top; |
289 | 289 | debug("Ram top: %08lX\n", (ulong)gd->ram_top); |
lib/fdtdec.c
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d
-
mentioned in commit 8ff21d