public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables
@ 2022-12-10  1:29 Marek Vasut
  2022-12-10 14:34 ` Fabio Estevam
  2023-01-31  9:50 ` sbabic
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Vasut @ 2022-12-10  1:29 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Fabio Estevam, Peng Fan, Stefano Babic

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")
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Fabio Estevam <festevam@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 arch/arm/mach-imx/romapi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-imx/romapi.c b/arch/arm/mach-imx/romapi.c
index c8accdb04db..b49e7f80a28 100644
--- a/arch/arm/mach-imx/romapi.c
+++ b/arch/arm/mach-imx/romapi.c
@@ -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;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables
  2022-12-10  1:29 [PATCH] ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables Marek Vasut
@ 2022-12-10 14:34 ` Fabio Estevam
  2023-01-31  9:50 ` sbabic
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2022-12-10 14:34 UTC (permalink / raw)
  To: Marek Vasut; +Cc: u-boot, Peng Fan, Stefano Babic

On 09/12/2022 22:29, Marek Vasut wrote:
> 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")
> Signed-off-by: Marek Vasut <marex@denx.de>

Reviewed-by: Fabio Estevam <festevam@denx.de>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables
  2022-12-10  1:29 [PATCH] ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables Marek Vasut
  2022-12-10 14:34 ` Fabio Estevam
@ 2023-01-31  9:50 ` sbabic
  1 sibling, 0 replies; 3+ messages in thread
From: sbabic @ 2023-01-31  9:50 UTC (permalink / raw)
  To: Marek Vasut, u-boot

> 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")
> Signed-off-by: Marek Vasut <marex@denx.de>
> Reviewed-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-31  9:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-10  1:29 [PATCH] ARM: imx: Reinstate decode ECSPI env location from i.MX8M ROMAPI tables Marek Vasut
2022-12-10 14:34 ` Fabio Estevam
2023-01-31  9:50 ` sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox