[U-Boot] env: sata: Add missed env location for SATA boot
diff mbox series

Message ID 1546594448-41521-1-git-send-email-ye.li@nxp.com
State Accepted
Commit 9a6a311d2bd12957f84f08a5214db698a35e918d
Delegated to: Tom Rini
Headers show
Series
  • [U-Boot] env: sata: Add missed env location for SATA boot
Related show

Commit Message

Ye Li Jan. 4, 2019, 9:34 a.m. UTC
The env location label ENVL_ESATA is missed in location tables, so
when we configure the ENV in SATA, u-boot fails to get correct env
location and cause boot hang in board_f.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
---
 env/env.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Jan. 10, 2019, 2:31 a.m. UTC | #1
On Fri, Jan 04, 2019 at 09:34:24AM +0000, Ye Li wrote:

> The env location label ENVL_ESATA is missed in location tables, so
> when we configure the ENV in SATA, u-boot fails to get correct env
> location and cause boot hang in board_f.
> 
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>

Applied to u-boot/master, thanks!

Patch
diff mbox series

diff --git a/env/env.c b/env/env.c
index afed0f3..003509d 100644
--- a/env/env.c
+++ b/env/env.c
@@ -71,6 +71,9 @@  static enum env_location env_locations[] = {
 #ifdef CONFIG_ENV_IS_IN_REMOTE
 	ENVL_REMOTE,
 #endif
+#ifdef CONFIG_ENV_IS_IN_SATA
+	ENVL_ESATA,
+#endif
 #ifdef CONFIG_ENV_IS_IN_SPI_FLASH
 	ENVL_SPI_FLASH,
 #endif