Skip to contentSkip to conversation

board: bsh: Switch to nand spl load instead of romapi

PATCH New Michael Trimarchi 1 participant 1 message May 15, 2022 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v3 5/5 board: bsh: Switch to nand spl load instead of romapi

romapi is not eble to skip bad block so we need to workaround using the spl

---
 board/bsh/imx8mn_smm_s2/spl.c | 3 +++
 1 file changed, 3 insertions(+)

---
V2->V3:
- Add to series and fix if condition
V1->V2:
- none
---

board/bsh/imx8mn_smm_s2/spl.c +3 -0
index 0f61acc630..097b60c055 100644
@@ -18,6 +18,9 @@
 
 int spl_board_boot_device(enum boot_device boot_dev_spl)
 {
+	if (IS_ENABLED(CONFIG_NAND_MXS) && get_boot_device() != USB_BOOT)
+		return BOOT_DEVICE_NAND;
+
 	return BOOT_DEVICE_BOOTROM;
 }
 
Signature · 1 line
2.25.1