diff options
author | T Karthik Reddy <t.karthik.reddy@xilinx.com> | 2021-11-24 12:16:55 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2022-01-05 11:16:21 +0100 |
commit | bf97c460a403fa884320643f065fff4758dcf54e (patch) | |
tree | 6a4ebda4fbbcb63828d35d73df1bfd8208699824 /board | |
parent | bb113ce313214cb754365baf4615b4d57910279f (diff) | |
download | u-boot-bf97c460a403fa884320643f065fff4758dcf54e.zip u-boot-bf97c460a403fa884320643f065fff4758dcf54e.tar.gz u-boot-bf97c460a403fa884320643f065fff4758dcf54e.tar.bz2 |
versal: Return ENVL_NOWHERE instead of ENVL_UNKNOWN
The system fails to boot without any environment location, so return
ENVL_NOWHERE when there's nowhere to store the environment instead
of ENVL_UNKNOWN.
The same change was also done by commit 50918d0df5cb ("xilinx: Return
ENVL_NOWHERE instead of ENVL_UNKNOWN") for zynq and zynqmp.
Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/e4ed36408f10159677ed8060bfd5289f3e0691fa.1637752614.git.michal.simek@xilinx.com
Diffstat (limited to 'board')
-rw-r--r-- | board/xilinx/versal/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index 03604d7..299e128 100644 --- a/board/xilinx/versal/board.c +++ b/board/xilinx/versal/board.c @@ -269,13 +269,13 @@ enum env_location env_get_location(enum env_operation op, int prio) return ENVL_FAT; if (IS_ENABLED(CONFIG_ENV_IS_IN_EXT4)) return ENVL_EXT4; - return ENVL_UNKNOWN; + return ENVL_NOWHERE; case OSPI_MODE: case QSPI_MODE_24BIT: case QSPI_MODE_32BIT: if (IS_ENABLED(CONFIG_ENV_IS_IN_SPI_FLASH)) return ENVL_SPI_FLASH; - return ENVL_UNKNOWN; + return ENVL_NOWHERE; case JTAG_MODE: default: return ENVL_NOWHERE; |