aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/spl.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-05-24 09:57:18 -0400
committerTom Rini <trini@konsulko.com>2022-06-06 12:09:12 -0400
commit3b2979eefaeb46d2f978e13c33bb88ec0e7ee09a (patch)
treefec9d6d4a8174f84968a10e0117068ff366a212c /arch/arm/mach-mvebu/spl.c
parent3135ba642f9a02a3a45d978d2425c1488d6efbbd (diff)
downloadu-boot-3b2979eefaeb46d2f978e13c33bb88ec0e7ee09a.zip
u-boot-3b2979eefaeb46d2f978e13c33bb88ec0e7ee09a.tar.gz
u-boot-3b2979eefaeb46d2f978e13c33bb88ec0e7ee09a.tar.bz2
mvebu: Use CONFIG_SPL_STACK + 4 directly for bootparam location
The definition of CONFIG_SPL_BOOTROM_SAVE is always a fixed CONFIG_SPL_STACK + 4, while CONFIG_SPL_STACK is not constant. This change will make it clear where the location is still, once CONFIG_SPL_STACK moves to Kconfig. Cc: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-mvebu/spl.c')
-rw-r--r--arch/arm/mach-mvebu/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c
index fa9a1d7..13c9991 100644
--- a/arch/arm/mach-mvebu/spl.c
+++ b/arch/arm/mach-mvebu/spl.c
@@ -283,7 +283,7 @@ u32 spl_boot_device(void)
int board_return_to_bootrom(struct spl_image_info *spl_image,
struct spl_boot_device *bootdev)
{
- u32 *regs = *(u32 **)CONFIG_SPL_BOOTROM_SAVE;
+ u32 *regs = *(u32 **)(CONFIG_SPL_STACK + 4);
printf("Returning to BootROM (return address 0x%08x)...\n", regs[13]);
return_to_bootrom();