Skip to contentSkip to conversation

imx: mx7: Add support for USB and normal boot modes

PATCH Superseded Eric Nelson 1 participant 1 message Aug 30, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 imx: mx7: Add support for USB and normal boot modes

This adds support for two additional boot modes on the i.MX7D SoC, which is most useful when doing U-Boot development on this chip.

1. "bmode usb" can be used to force the ROM boot loader's serial
2. "bmode normal" can be used to revert to the normal boot mode as specified by fuses and BOOT_MODE pins

---
V2 adds "normal" mode as suggested by Troy Kisky

 arch/arm/mach-imx/mx7/soc.c | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-imx/mx7/soc.c +3 -0
index 87bf105..15be42a 100644
@@ -372,6 +372,9 @@ void set_wdog_reset(struct wdog_regs *wdog)
  * to SBMR1, which will determine the boot device.
  */
 const struct boot_mode soc_boot_modes[] = {
+	{"normal",	MAKE_CFGVAL(0x00, 0x00, 0x00, 0x00)},
+	{"usb",		MAKE_CFGVAL(0x01, 0x00, 0x00, 0x00)},
+
 	{"ecspi1:0",	MAKE_CFGVAL(0x00, 0x60, 0x00, 0x00)},
 	{"ecspi1:1",	MAKE_CFGVAL(0x40, 0x62, 0x00, 0x00)},
 	{"ecspi1:2",	MAKE_CFGVAL(0x80, 0x64, 0x00, 0x00)},
Signature · 1 line
2.7.4