]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
versal: Return ENVL_NOWHERE instead of ENVL_UNKNOWN
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Wed, 24 Nov 2021 10:18:55 +0000 (03:18 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 24 Nov 2021 11:15:06 +0000 (12:15 +0100)
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>
board/xilinx/versal/board.c

index 508564b586ebfd6585527aada4cbe852ce79c1de..28f8a43d2fc8723fc470b70f2cc281f6503c9d6a 100644 (file)
@@ -268,13 +268,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;