From: Tom Rini Date: Tue, 2 Mar 2021 08:28:22 -0500 Subject: [PATCH 02/11] spl: fit: nand: allow for non-page-aligned elements In-Reply-To: <20210301223337.7763-3-tharvey@gateworks.com> References: <20210301223337.7763-1-tharvey@gateworks.com> <20210301223337.7763-3-tharvey@gateworks.com> Message-ID: <20210302132822.GX10169@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 Mon, Mar 01, 2021 at 02:33:28PM -0800, Tim Harvey wrote: > Add a weak nand_get_mtd function for nand drivers to provide mtd info > and use this to set pagesize such that reading of non page-aligned > elements can succeed. > > The spl_load_simple_fit already handles block block access so all we > need to do is provide the nand writesize as the block length. > > Further cleanup of the drivers which use nand_spl_loaders.c such as > am335x_spl_bch.c, atmel_nand.c, and nand_spl_simple.c could be done > using info from mtd_info instead of statically defined details. > > Signed-off-by: Tim Harvey Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: