From: Patrick DELAUNAY Date: Wed, 22 Apr 2020 14:04:33 +0000 Subject: [PATCH V3 4/6] ram: stm32mp1: Add support for multiple configs In-Reply-To: <20200422111814.121060-4-marex@denx.de> References: <20200422111814.121060-1-marex@denx.de> <20200422111814.121060-4-marex@denx.de> Message-ID: <0b6a9dd7fe9d4726aec5289eabb87d87@SFHDAG6NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > From: Marek Vasut > Sent: mercredi 22 avril 2020 13:18 > > Add support for multiple DRAM configuration subnodes, while retaining the > support for a single flat DRAM configuration node. This is useful on systems > which can be manufactured in multiple configurations and where the DRAM > configuration can be determined at runtime. > > The code is augmented by a function which can be overridden on board level, > allowing a match on the configuration node name, very much like the fitImage > configuration node name matching works. The default match is on the single top- > level DRAM configuration, if matching on subnodes is required, then this > board_stm32mp1_ddr_config_name_match() must be overridden. > > Signed-off-by: Marek Vasut > Cc: Manivannan Sadhasivam > Cc: Patrick Delaunay > Cc: Patrice Chotard > --- > V2: Match on compatible string > V3: Rework the stm32mp1_ddr_get_ofnode() function > --- > drivers/ram/stm32mp1/stm32mp1_ram.c | 33 ++++++++++++++++++++++++----- > 1 file changed, 28 insertions(+), 5 deletions(-) > Reviewed-by: Patrick Delaunay Thanks Patrick