]> git.ipfire.org Git - thirdparty/u-boot.git/commit
rockchip: rk3576: Add SPI Flash boot support
authorJonas Karlman <jonas@kwiboo.se>
Sun, 19 Oct 2025 15:47:18 +0000 (15:47 +0000)
committerTom Rini <trini@konsulko.com>
Sun, 2 Nov 2025 18:14:09 +0000 (12:14 -0600)
commit7f4192d990986b1b1489cfa89c672bcb706d4ce5
tree092420f5432cceecb01e4e9e83e712c1ee038208
parentdfe242921ef3796b32d9b68fff599d997c42a81a
rockchip: rk3576: Add SPI Flash boot support

The bootsource ids reported by BootROM of RK3576 for SPI NOR and USB
differs slightly compared to prior SoCs:

- Booting from sfc0 (ROCK 4D) report the normal bootsource id 0x3.
- Booting from sfc1 M1 (NanoPi M5) report a new bootsource id 0x23.
- Booting from sfc1 M0 has not been tested (no board using this config).
- Booting from USB report a new bootsource id 0x81.

Add a RK3576 specific read_brom_bootsource_id() function to help decode
the new bootsource id values and the required boot_devices mapping of
sfc0 and sfc1 to help support booting from SPI flash on RK3576.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3576-u-boot.dtsi
arch/arm/mach-rockchip/rk3576/rk3576.c