The table of register content to bootsource mapping has been taken from
the vendor U-Boot. This table lacks an entry for USB boot. Add this
entry. It's unknown if this entry is entirely correct, it reflects the
value read from the register when doing USB boot.

Signed-off-by: Sascha Hauer <[email protected]>
---
 arch/arm/mach-rockchip/rk3568.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-rockchip/rk3568.c b/arch/arm/mach-rockchip/rk3568.c
index fcf3cb7053..35c4afd4c2 100644
--- a/arch/arm/mach-rockchip/rk3568.c
+++ b/arch/arm/mach-rockchip/rk3568.c
@@ -151,6 +151,11 @@ static struct rk_bootsource bootdev_map[] = {
        { .src = BOOTSOURCE_SPI_NOR, .instance = 0 },
        { .src = BOOTSOURCE_SPI_NAND, .instance = 0 },
        { .src = BOOTSOURCE_MMC, .instance = 1 },
+       { .src = BOOTSOURCE_UNKNOWN, .instance = 0 },
+       { .src = BOOTSOURCE_UNKNOWN, .instance = 0 },
+       { .src = BOOTSOURCE_UNKNOWN, .instance = 0 },
+       { .src = BOOTSOURCE_UNKNOWN, .instance = 0 },
+       { .src = BOOTSOURCE_USB, .instance = 0 },
 };
 
 static enum bootsource rk3568_bootsource(void)
-- 
2.30.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to