u-boot/common/spl
Roger Quadros 06377c5a1f spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard
OMAP3 BeagleBoard NAND boot hangs when spl_load_legacy_img() tries
to read the header into 'struct hdr' which is allocated on the
stack.

As the header has already been read once before by spl_nand.c,
we can avoid the extra header allocation and read here by
simply passing around the pointer to the header.

This fixes NAND boot on OMAP3 BeagleBoard.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
2022-10-26 15:20:47 -04:00
..
Kconfig sunxi: Kconfig: use SoC-wide values for some symbols 2022-10-18 08:18:30 +01:00
Kconfig.nxp spl: Move all VPL, TPL and PowerPC specific CONFIG options to separate files 2022-06-06 12:09:29 -04:00
Kconfig.tpl spl: binman: Disable u_boot_any symbols for i.MX8M boards 2022-06-28 03:09:52 +01:00
Kconfig.vpl vpl: fix reference in comment to non-existing SPL_SERIAL_SUPPORT 2022-08-04 15:32:20 -04:00
Makefile spl: Rename Kconfig SPL_LEGACY_IMAGE_SUPPORT to SPL_LEGACY_IMAGE_FORMAT 2022-05-11 09:22:24 -04:00
spl.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_atf.c spl: atf: Fix clang -Wasm-operand-widths warning 2022-10-10 18:01:23 -04: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 treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fat.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fit.c spl: fit: Allocate buffers aligned to cache line size 2022-09-14 15:23:03 -04:00
spl_legacy.c spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard 2022-10-26 15:20:47 -04:00
spl_mmc.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_nand.c spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard 2022-10-26 15:20:47 -04:00
spl_net.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_nor.c spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard 2022-10-26 15:20:47 -04:00
spl_onenand.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_opensbi.c spl: opensbi: convert scratch options to config 2022-08-11 18:46:41 +08:00
spl_optee.S Rockchip-focused changes for v2018.11-rc2: 2018-10-05 13:40:42 -04:00
spl_ram.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_sata.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_sdp.c spl: sdp: Pass the USB index to board_usb_init() 2022-07-14 16:13:11 +02:00
spl_semihosting.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_spi.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_ubi.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_usb.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
spl_xip.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_ymodem.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00