Files
u-boot-sunxi/lib
Nathan Rossi 623f60198b fdt: add memory bank decoding functions for board setup
Add two functions for use by board implementations to decode the memory
banks of the /memory node so as to populate the global data with
ram_size and board info for memory banks.

The fdtdec_setup_memory_size() function decodes the first memory bank
and sets up the gd->ram_size with the size of the memory bank. This
function should be called from the boards dram_init().

The fdtdec_setup_memory_banksize() function decode the memory banks
(up to the CONFIG_NR_DRAM_BANKS) and populates the base address and size
into the gd->bd->bi_dram array of banks. This function should be called
from the boards dram_init_banksize().

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Michal Simek <monstr@monstr.eu>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2016-12-20 09:15:28 +01:00
..
2016-02-06 12:00:59 +01:00
2016-04-11 20:48:26 -04:00
2016-05-02 18:37:09 -04:00
2016-10-19 09:01:52 +02:00
2016-11-21 14:07:30 -05:00
2016-10-19 09:01:53 +02:00
2016-06-06 13:39:18 -04:00
2016-10-11 11:55:33 +08:00
2016-02-26 08:53:10 -07:00