From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 15 May 2019 11:17:15 -0400 Subject: [U-Boot] [PATCH 03/13] spl: Make image loader infrastructure more universal In-Reply-To: <20190507172542.31359-4-dannenberg@ti.com> References: <20190507172542.31359-1-dannenberg@ti.com> <20190507172542.31359-4-dannenberg@ti.com> Message-ID: <20190515151715.GG22232@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 Tue, May 07, 2019 at 12:25:32PM -0500, Andreas Dannenberg wrote: > The current U-Boot SPL image loader infrastructure is very powerful, > able to initialize and load from a variety of boot media however it > is strongly geared towards loading specific types of images in a very > specific way. To address the need being able to use this infrastructure > to load arbitrary image files go ahead and refactor it as follows: > > - Refactor existing spl_mmc_load_image function into superset function, > accepting additional arguments such as filenames and media load offset > (same concept can also be applied toother spl_XXX_load_image functions) > - Extend the loader function to "remember" their peripheral initialization > status so that the init is only done once during the boot process, > - Extend the FIT image loading function to allow skipping the parsing/ > processing of the FIT contents (so that this can be done separately > in a more customized fashion) > - Populate the SPL_LOAD_IMAGE_METHOD() list with a trampoline function, > invoking the newly refactored superset functions in a way to maintain > compatibility with the existing behavior > > This refactoring initially covers MMC/SD card loading (RAW and FS-based). > > Signed-off-by: Andreas Dannenberg Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: