Home
last modified time | relevance | path

Searched hist:acda6ec11c7b3a44c477cef6ace38b671226059c (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/lib/
H A Dfdtdec.cacda6ec11c7b3a44c477cef6ace38b671226059c Mon Nov 27 04:32:42 UTC 2017 Marek Vasut <marek.vasut+renesas@gmail.com> UPSTREAM: fdtdec: Support parsing multiple /memory nodes

It is legal to have multiple /memory nodes in a device tree . Currently,
fdtdec_setup_memory_size() only supports parsing the first node . This
patch extends the function such that if a particular /memory node does
no longer have further "reg" entries and CONFIG_NR_DRAM_BANKS still
allows for more DRAM banks, the code moves on to the next memory node
and checks it's "reg"s. This makes it possible to handle both systems
with single memory node with multiple entries and systems with multiple
memory nodes with single entry.

Change-Id: Idc8b4bebc916b6a6bc0d2deb3c4008921d268d1e
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 942ee0933e881ff500aae7e42309bf6abbc495d4)