]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: sata: Add missed env location for SATA boot
authorYe Li <ye.li@nxp.com>
Fri, 4 Jan 2019 09:34:24 +0000 (09:34 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 9 Jan 2019 12:13:32 +0000 (07:13 -0500)
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

index afed0f3c95c3c173edc30c2e7cb04ab351955504..003509d34240fcc3355c1c3901405eda49b1f508 100644 (file)
--- 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