u-boot/common/spl
Andre Przywara 0d8ac5644e sunxi: h616: (really) lower SPL stack address to avoid BROM data
When using the USB OTG FEL mode on the Allwinner H616, the BootROM
stores some data at the end of SRAM C. This is also the location where
we place the initial SPL stack, so it will overwrite this data.
We still need the BROM code after running the SPL, so should leave that
area alone.
Interestingly this does not seem to have an adverse effect, I guess on
the "way out" (when we return to FEL after the SPL has run), this data
is not needed by the BROM, for just the trailing end of the USB operation.
However this is still wrong, and we should not clobber BROM data.

Lower the SPL stack address to be situated right below the swap buffers
we use in sunxi-fel: that should be out of the way of everyone else.

This obsoletes a previous commit (eb53e7743c) with the same name:
that one was changing the address in an *unused* macro in sunxi_common.h,
so the previous patch didn't have any effect at all.

Fixes: eb53e7743c ("sunxi: h616: lower SPL stack address to avoid BROM data")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2023-12-06 23:08:37 +00:00
..
Kconfig sunxi: h616: (really) lower SPL stack address to avoid BROM data 2023-12-06 23:08:37 +00:00
Kconfig.nxp spl: Use CONFIG_SPL... instead of CONFIG_..._SPL_... 2023-10-06 14:38:11 -04:00
Kconfig.tpl Kconfigs: Correct default of "0" on hex type entries 2023-08-09 09:21:42 -04:00
Kconfig.vpl vbe: Add Kconfig options for VPL 2022-10-31 11:03:59 -04:00
Makefile tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
spl.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_atf.c spl: add __noreturn attribute to spl_invoke_atf function 2023-10-09 15:24:31 -04:00
spl_blk_fs.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_bootrom.c spl: pass args to board_return_to_bootrom 2019-10-08 16:35:16 +02:00
spl_dfu.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
spl_ext.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_fat.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_fit.c spl: riscv: add os type for next booting stage 2023-10-19 17:29:33 +08:00
spl_imx_container.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_legacy.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_mmc.c u-boot-imx-20231024 2023-10-24 09:39:02 -04:00
spl_nand.c arm: imx: Check header before calling spl_load_imx_container 2023-10-17 20:50:52 -04:00
spl_net.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_nor.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_nvme.c spl: initialize PCI before booting 2023-07-30 18:53:08 +02:00
spl_onenand.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_opensbi.c spl: riscv: add os type for next booting stage 2023-10-19 17:29:33 +08:00
spl_optee.S Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_ram.c spl: Tidy up load address in spl_ram 2023-09-19 11:36:26 -04:00
spl_sata.c spl: sata: Rework the loading case it not use IS_ENABLED(...) 2023-01-20 12:27:06 -05:00
spl_sdp.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
spl_semihosting.c spl: add FIT support to semihosting boot method 2023-08-14 17:55:53 -04:00
spl_spi.c spl: Use map_sysmem where appropriate 2023-10-17 20:50:52 -04:00
spl_ubi.c spl: Rename SYS_SPL_ARGS_ADDR to SPL_PAYLOAD_ARGS_ADDR 2023-10-06 14:38:11 -04:00
spl_usb.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
spl_xip.c spl: Rename SYS_SPL_ARGS_ADDR to SPL_PAYLOAD_ARGS_ADDR 2023-10-06 14:38:11 -04:00
spl_ymodem.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00