]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: Use U-Boot's SPL BootROM framework for booting from NAND/UART
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:26 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
commit6a682c2107f3656261b7fae8c4eef7907ec27747
treebb9c1ac19d9bb06d883c892068f636a3a8647595
parent579e64021ae81920206e501731f9a74685054b49
arm: mvebu: Use U-Boot's SPL BootROM framework for booting from NAND/UART

Current code uses hack in board_init_f() which calls return_to_bootrom()
to skip U-Boot SPL code and return back to BootROM to load U-Boot via
UART or from NAND.

This change migrates that hack from the board_init_f() function and
changes it to return BOOT_DEVICE_BOOTROM instead of returning to BootROM
directly, so that U-Boot's SPL framework is used for returning to
BootROM.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
arch/arm/mach-mvebu/spl.c