Hi Jonas,

On 2023/11/1 00:45, Jonas Karlman wrote:
On 2023-10-31 17:13, Slawomir Stepien wrote:
Mark the flash@0 as BROM_BOOTSOURCE_SPINAND.
Fixes use of same-as-spl in u-boot,spl-boot-order prop on Orange Pi 5
Plus.

Signed-off-by: Slawomir Stepien <[email protected]>
---
  arch/arm/mach-rockchip/rk3588/rk3588.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-rockchip/rk3588/rk3588.c 
b/arch/arm/mach-rockchip/rk3588/rk3588.c
index b1f535fad5..0c8f10a97c 100644
--- a/arch/arm/mach-rockchip/rk3588/rk3588.c
+++ b/arch/arm/mach-rockchip/rk3588/rk3588.c
@@ -42,6 +42,7 @@ const char * const boot_devices[BROM_LAST_BOOTSOURCE + 1] = {
        [BROM_BOOTSOURCE_SPINOR] = "/spi@fe2b0000/flash@0",
        [BROM_BOOTSOURCE_SD] = "/mmc@fe2c0000",
        [BROM_BOOTSOURCE_SPINOR_RK3588] = "/spi@fe2b0000/flash@0",
+       [BROM_BOOTSOURCE_SPINAND] = "/spi@fe2b0000/flash@0",
This is not correct, please see [1] for an open discussion on this issue.

Kever: Do you have any more insights into the question on [1].

As I reply in another mail, the FSPI M0~M2 is all the option for SPI NAND/NOR in rk3588.

Thanks,

- Kever


Is my assessment about the value BootRom writes to bootsource reg
correct, see [1]?

- FSPI (M0): 3
- FSPI (M1): 4
- FSPI (M2): 6

[1] 
https://lore.kernel.org/u-boot/[email protected]/

Regards,
Jonas

  };
static struct mm_region rk3588_mem_map[] = {

Reply via email to