[PATCH 02/11] spl: fit: nand: allow for non-page-aligned elements
Tom Rini
trini at konsulko.com
Tue Mar 2 14:28:22 CET 2021
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 <tharvey at gateworks.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210302/033995c0/attachment.sig>
More information about the U-Boot
mailing list