diff options
| author | Anshul Dalal <[email protected]> | 2025-09-09 13:47:30 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-09-12 08:24:21 -0600 |
| commit | 210702ae6ce820713773549c4e102b37f09d7cc5 (patch) | |
| tree | abcb1181daf874249ffb9de3f699ec3d534c6481 /common | |
| parent | c9800dc906ad21a1157ec718f5e450daaf42e4b3 (diff) | |
spl: spi: fix falcon mode for spi boot
spl_start_uboot is a board overridable function that switches to falcon
boot mode on return value of 0.
Though for SPI, the falcon boot mode was being enabled on return value
of 1 which is not the correct behaviour. Therefore this patch fixes it
to the expected boot flow.
Fixes: 14509a28aa20 ("spl: spi: Consolidate spi_load_image_os into spl_spi_load_image")
Signed-off-by: Anshul Dalal <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/spl/spl_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c index 00dbd3011f0..c2b188371c2 100644 --- a/common/spl/spl_spi.c +++ b/common/spl/spl_spi.c @@ -80,7 +80,7 @@ static int spl_spi_load_image(struct spl_image_info *spl_image, spl_load_init(&load, spl_spi_fit_read, flash, 1); #if CONFIG_IS_ENABLED(OS_BOOT) - if (spl_start_uboot()) { + if (!spl_start_uboot()) { int err = spl_load(spl_image, bootdev, &load, 0, CONFIG_SYS_SPI_KERNEL_OFFS); |
