u-boot-brain/common/spl
Tim Harvey 7055ac5d69 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-27 15:13:58 -03:00
..
Kconfig bootcount: allow to use this feature on TPL 2021-01-27 16:58:57 -05:00
Makefile spl: Extract legacy image handling into separate file 2020-04-27 20:29:33 +02:00
spl_atf.c spl: atf: add support for LOAD_IMAGE_V2 2020-12-04 16:09:06 -05:00
spl_bootrom.c spl: pass args to board_return_to_bootrom 2019-10-08 16:35:16 +02:00
spl_dfu.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
spl_ext.c spl: fix ext4fs_mount return code handling 2020-07-17 08:51:01 -04:00
spl_fat.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_fit.c spl: fit: Load devicetree when a Linux payload is found 2021-02-17 19:46:43 -05:00
spl_legacy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_mmc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_nand.c spl: fit: nand: allow for non-page-aligned elements 2021-04-27 15:13:58 -03:00
spl_net.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_nor.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_onenand.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_opensbi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl_optee.S Rockchip-focused changes for v2018.11-rc2: 2018-10-05 13:40:42 -04:00
spl_ram.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_sata.c spl: sata: support U-Boot load from raw sata disk 2019-07-24 14:15:36 -04:00
spl_sdp.c sdp: call board_usb_init at spl_sdp_load_image 2020-09-01 14:47:43 +02:00
spl_spi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl_ubi.c common: Drop image.h from common header 2020-05-18 17:33:33 -04:00
spl_usb.c spl: usb: Only init usb once 2020-08-11 20:34:46 +05:30
spl_xip.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spl_ymodem.c common: rename getc() to getchar() 2020-10-22 09:54:53 -04:00
spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00