Skip to contentSkip to conversation

ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables

PATCH In review Marek Vasut 3 participants 3 messages Dec 10, 2022 – Jan 31, 2023

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

PATCH 1/1 ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables

Decode ECSPI boot device in env_get_location() from i.MX8M ROMAPI tables. This is necessary to correctly identify env is in SPI NOR when the system boots from SPI NOR attached to ECSPI.

This reinstates change from commit:
e26d0152d61 ("ARM: imx: Decode ECSPI env location from i.MX8M ROMAPI tables") which has been dropped in commit:
b0a284a7c94 ("imx: move get_boot_device to common file")

Fixes b0a284a7c94 ("imx: move get_boot_device to common file")

---
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>

---
 arch/arm/mach-imx/romapi.c | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-imx/romapi.c +3 -0
index c8accdb04db..b49e7f80a28 100644
@@ -66,6 +66,9 @@ enum boot_device get_boot_device(void)
 	case BT_DEV_TYPE_FLEXSPINOR:
 		boot_dev = QSPI_BOOT;
 		break;
+	case BT_DEV_TYPE_SPI_NOR:
+		boot_dev = SPI_NOR_BOOT;
+		break;
 	case BT_DEV_TYPE_USB:
 		boot_dev = boot_instance + USB_BOOT;
 		break;
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Marek Vasut

Decode ECSPI boot device in env_get_location() from i.MX8M ROMAPI tables. This is necessary to correctly identify env is in SPI NOR when the system boots from SPI NOR attached to ECSPI.

This reinstates change from commit:
e26d0152d61 ("ARM: imx: Decode ECSPI env location from i.MX8M ROMAPI tables") which has been dropped in commit:
b0a284a7c94 ("imx: move get_boot_device to common file")

Fixes b0a284a7c94 ("imx: move get_boot_device to common file")
#2 lore raw

PATCH 1/1 ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables

In reply to Marek Vasut
Quoted 10 lines

Decode ECSPI boot device in env_get_location() from i.MX8M ROMAPI tables. This is necessary to correctly identify env is in SPI NOR when the system boots from SPI NOR attached to ECSPI.
This reinstates change from commit:
e26d0152d61 ("ARM: imx: Decode ECSPI env location from i.MX8M ROMAPI tables") which has been dropped in commit:
b0a284a7c94 ("imx: move get_boot_device to common file")

Fixes b0a284a7c94 ("imx: move get_boot_device to common file")

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================