[PATCH 5/8] sunxi: enable support for SPI NAND booting on SUNIV
Samuel Holland
samuel at sholland.org
Sat Jan 14 21:18:25 CET 2023
On 10/13/22 22:05, Icenowy Zheng wrote:
> As we added support for SPI NAND to the existing SPL SPI codepath, route
> the boot code to it when it detects the BROM loads SPL from SPI NAND, as
> for SoCs with both SPI NAND and boot media indicator support, the boot
> media indicator is the same for SPI NOR and NAND.
>
> Signed-off-by: Icenowy Zheng <uwu at icenowy.me>
> ---
> arch/arm/mach-sunxi/board.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Samuel Holland <samuel at sholland.org>
> diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c
> index 220ed80ba7..3a81743e8f 100644
> --- a/arch/arm/mach-sunxi/board.c
> +++ b/arch/arm/mach-sunxi/board.c
> @@ -210,12 +210,10 @@ static int suniv_get_boot_source(void)
> case SUNIV_BOOTED_FROM_MMC0:
> return SUNXI_BOOTED_FROM_MMC0;
> case SUNIV_BOOTED_FROM_SPI:
> + case SUNIV_BOOTED_FROM_NAND:
> return SUNXI_BOOTED_FROM_SPI;
> case SUNIV_BOOTED_FROM_MMC1:
> return SUNXI_BOOTED_FROM_MMC2;
> - /* SPI NAND is not supported yet. */
> - case SUNIV_BOOTED_FROM_NAND:
> - return SUNXI_INVALID_BOOT_SOURCE;
> }
> /* If we get here something went wrong try to boot from FEL.*/
> printf("Unknown boot source from BROM: 0x%x\n", brom_call);
More information about the U-Boot
mailing list