From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 9 Oct 2020 09:02:46 -0400 Subject: [PATCH v2 4/6] qemu-arm: Remove need to specify flash banks In-Reply-To: <20200930163918.24995-5-andre.przywara@arm.com> References: <20200930163918.24995-1-andre.przywara@arm.com> <20200930163918.24995-5-andre.przywara@arm.com> Message-ID: <20201009130246.GA14816@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Sep 30, 2020 at 05:39:16PM +0100, Andre Przywara wrote: > Currently we hard-code the number and initial addresses of QEMU's flash > banks, even though our code is perfectly able to gather the same > information from the DTB provided by QEMU. > This is especially annoying, since we have two slightly different > U-Boot configurations ("bare-metal" vs. loaded via Arm Trusted > Firmware), which need to be selected at build time. > > Drop the two hard coded alternatives, and use > CONFIG_SYS_MAX_FLASH_BANKS_DETECT instead, which relies on the DTB to > figure out the actual flash configuration at runtime. > > Signed-off-by: Andre Przywara Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: