lib: fdtdec: Update ram_base to store ram start adddress
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Mon, 16 Jul 2018 10:26:10 +0000 (15:56 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Jul 2018 08:49:56 +0000 (10:49 +0200)
commit1473b12ad0b33771ded1b2fd6b73d2cd6d73b8f7
tree9fa0de2e820f89ffa33941b069e5eb96865b0b8c
parentf4da871a7f09540557792ea5da688c54790add7d
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>
common/board_f.c
lib/fdtdec.c