mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
fd6e425be2
Add sfc and flash node to device tree and config options to enable support for booting from SPI NOR flash on Radxa ROCK 5 Model B. Similar to RK3568 the BootRom in RK3588 can read all data and look for idbloader at 0x8000, same as on SD and eMMC. Use the rksd format and modify the mkimage offset to generate a bootable u-boot-rockchip-spi.bin that can be written to 0x0 of SPI NOR flash. The FIT image is loaded from 0x60000. => sf probe SF: Detected mx25u12835f with page size 256 Bytes, erase size 4 KiB, total 16 MiB => load mmc 1:1 10000000 u-boot-rockchip-spi.bin 1492992 bytes read in 129 ms (11 MiB/s) => sf update $fileaddr 0 $filesize device 0 offset 0x0, size 0x16c800 1300480 bytes written, 192512 bytes skipped in 11.103s, speed 137694 B/s The BROM_BOOTSOURCE_ID value read back when booting from SPI flash does not match the expected value of 3 (SPINOR) used by other SoCs. Instead a value of 6 is read back, add a new enum value to handle this new bootsource id. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Tested-by: Eugen Hristev <eugen.hristev@collabora.com> Reviewed-by: Eugen Hristev <eugen.hristev@collabora.com> |
||
---|---|---|
.. | ||
px30 | ||
rk322x | ||
rk3036 | ||
rk3066 | ||
rk3128 | ||
rk3188 | ||
rk3288 | ||
rk3308 | ||
rk3328 | ||
rk3368 | ||
rk3399 | ||
rk3568 | ||
rk3588 | ||
rv1108 | ||
rv1126 | ||
board.c | ||
boot_mode.c | ||
bootrom.c | ||
cpu-info.c | ||
Kconfig | ||
Makefile | ||
misc.c | ||
px30-board-tpl.c | ||
rk3036-board-spl.c | ||
sdram.c | ||
spl-boot-order.c | ||
spl.c | ||
tpl.c | ||
u-boot-tpl-v8.lds |