The i.MX6UL differs from the i.MX6Q in the interpretation of the first two values for BOOT_CFG(7, 4): +--------------+----------+----------+ |BOOT_CFG1(7,4)| 0x01 | 0x02 | |==============+==========+==========| | MX6Q | reserved | SATA | |--------------+----------+----------| | MX6UL | QSPI | reserved | +--------------+----------+----------+ The reserved (forced serial) values are handled in the previous commit. Add QSPI boot source detection now. Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx> --- arch/arm/mach-imx/boot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index f8d4f8cfa27f..dcca3a5c4a97 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -427,6 +427,9 @@ void imx6_get_boot_source(enum bootsource *src, int *instance) } switch (bootsrc) { + case 1: /* only reachable for i.MX6UL(L) */ + *src = BOOTSOURCE_SPI; /* Really: qspi */ + return; case 2: /* unreachable for i.MX6UL(L) */ *src = BOOTSOURCE_HD; break; -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox