From: sbabic at denx.de Date: Thu, 8 Apr 2021 22:58:28 +0200 (CEST) Subject: [PATCH 02/11] spl: fit: nand: allow for non-page-aligned elements In-Reply-To: <20210301223337.7763-3-tharvey@gateworks.com> Message-ID: <20210408205828.F0E0D81D34@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================