Tim Harvey aa0032f672 spl: fit: nand: allow for non-page-aligned elements
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@gateworks.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2021-04-08 20:29:53 +02:00
..
2021-03-08 10:32:34 +01:00
2021-04-08 09:18:29 +02:00
2021-03-29 18:00:21 -04:00
2021-03-29 18:00:21 -04:00
2021-03-27 13:59:36 +13:00
2021-03-31 09:47:30 -04:00
2021-03-15 12:15:38 -04:00
2021-03-13 13:14:52 -05:00
2021-01-23 11:30:31 +01:00
2020-11-06 10:18:20 +08:00