From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from zimbra2.kalray.eu ([92.103.151.219]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jDnXB-0005YL-RX for barebox@lists.infradead.org; Mon, 16 Mar 2020 11:03:51 +0000 From: Clement Leger Date: Mon, 16 Mar 2020 12:00:06 +0100 Message-Id: <20200316110008.2909-1-cleger@kalray.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 0/2] Allow parsing more than one memory node To: Sascha Hauer , barebox@lists.infradead.org Cc: Clement Leger Currently, barebox can only parse one memory node. This means that all other memory nodes (with device_type == "memory") will be ignored while parsing memory. This patchset add a function of_probe_memory which will call of_add_memory for each found memory node. Additionally, of_add_memory has been modified to allow being called multiple times and correctly add all memory banks. Clement Leger (2): of: base: parse all available memory nodes of: base: allow of_add_memory to be called multiple times drivers/of/base.c | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) -- 2.15.0.276.g89ea799 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox