From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= Date: Wed, 29 Nov 2017 14:23:28 +0100 Subject: [U-Boot] [PATCH] fdtdec: Support parsing multiple /memory nodes In-Reply-To: <20171129024545.6860-1-marek.vasut+renesas@gmail.com> References: <20171129024545.6860-1-marek.vasut+renesas@gmail.com> Message-ID: <20171129142328.60e8970a@karo-electronics.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi, On Wed, 29 Nov 2017 03:45:45 +0100 Marek Vasut wrote: > 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 > s/it's/its/ Lothar Wa=C3=9Fmann