Skip to contentSkip to conversation

imx: remove SATA boot mode for i.MX 6UL and 6ULL

PATCH New Stefan Agner 3 participants 3 messages Aug 29, 2017

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

PATCH 1/1 imx: remove SATA boot mode for i.MX 6UL and 6ULL

From: Stefan Agner <[email protected]>

The NXP i.MX 6UL and 6ULL do not support SATA and have no SATA boot mode, hence remove it from the boot device detecion. This fixes a build error introduced with 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL")

Fixes 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL")

---

 arch/arm/mach-imx/spl.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-imx/spl.c +2 -0
index bcd1033fdb..3853e7739d 100644
@@ -45,8 +45,10 @@ u32 spl_boot_device(void)
 	case IMX6_BMODE_RESERVED:
 		return BOOT_DEVICE_BOARD;
 	/* SATA: See 8.5.4, Table 8-20 */
+#if !defined(CONFIG_MX6UL) && !defined(CONFIG_MX6ULL)
 	case IMX6_BMODE_SATA:
 		return BOOT_DEVICE_SATA;
+#endif
 	/* Serial ROM: See 8.5.5.1, Table 8-22 */
 	case IMX6_BMODE_SERIAL_ROM:
 		/* BOOT_CFG4[2:0] */
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 imx: remove SATA boot mode for i.MX 6UL and 6ULL

Hi Stefan,

Quoted 20 lines · Stefan Agner

From: Stefan Agner <[email protected]>

The NXP i.MX 6UL and 6ULL do not support SATA and have no SATA boot mode, hence remove it from the boot device detecion. This fixes a build error introduced with 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL")

Fixes 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL")

---

 arch/arm/mach-imx/spl.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-imx/spl.c +0 -0
index bcd1033fdb..3853e7739d 100644

arch/arm/mach-imx/spl.c u32 spl_boot_device(void) · line 54

Quoted 10 lines
arch/arm/mach-imx/spl.c +2 -0
@@ -45,8 +45,10 @@ u32 spl_boot_device(void)
 	case IMX6_BMODE_RESERVED:
 		return BOOT_DEVICE_BOARD;
 	/* SATA: See 8.5.4, Table 8-20 */
+#if !defined(CONFIG_MX6UL) && !defined(CONFIG_MX6ULL)
 	case IMX6_BMODE_SATA:
 		return BOOT_DEVICE_SATA;
+#endif
 	/* Serial ROM: See 8.5.5.1, Table 8-22 */
 	case IMX6_BMODE_SERIAL_ROM:
 		/* BOOT_CFG4[2:0] */

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#2 lore raw

PATCH 1/1 imx: remove SATA boot mode for i.MX 6UL and 6ULL

Quoted 27 lines · Stefano Babic

Hi Stefan,

Quoted 24 lines · Stefan Agner

From: Stefan Agner <[email protected]>

The NXP i.MX 6UL and 6ULL do not support SATA and have no SATA boot mode, hence remove it from the boot device detecion. This fixes a build error introduced with 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL")

Fixes 3bd1642d4d50 ("imx: fix USB boot mode detection for i.MX 6UL and 6ULL")

---

 arch/arm/mach-imx/spl.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-imx/spl.c +1 -0
index bcd1033fdb..3853e7739d 100644
@@ -45,8 +45,10 @@ u32 spl_boot_device(void)
      case IMX6_BMODE_RESERVED:
              return BOOT_DEVICE_BOARD;
      /* SATA: See 8.5.4, Table 8-20 */
+#if !defined(CONFIG_MX6UL) && !defined(CONFIG_MX6ULL)
      case IMX6_BMODE_SATA:
Quoted 8 lines

arch/arm/mach-imx/spl.c u32 spl_boot_device(void) · line 54

Quoted 6 lines
arch/arm/mach-imx/spl.c +1 -0
              return BOOT_DEVICE_SATA;
+#endif
      /* Serial ROM: See 8.5.5.1, Table 8-22 */
      case IMX6_BMODE_SERIAL_ROM:
              /* BOOT_CFG4[2:0] */

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.