]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes
authorMichal Simek <michal.simek@xilinx.com>
Mon, 11 Jan 2021 12:46:58 +0000 (13:46 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 2 Feb 2021 11:31:29 +0000 (12:31 +0100)
For systems which has both sdhci controllers enable it is worth to export
bootseq number for variables. Then the variable can be used in custom
scripts to tune logic for OS.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
State: upstream (2784befbd7ef21b77ad246ce258f06e4aa711d81)

board/xilinx/zynqmp/zynqmp.c

index 731285a73674dd69567fc1c91df6106945ff521e..c69d38529dc982188b2858a181b88cafffadeb14 100644 (file)
@@ -648,6 +648,7 @@ int board_late_init(void)
        if (bootseq >= 0) {
                bootseq_len = snprintf(NULL, 0, "%i", bootseq);
                debug("Bootseq len: %x\n", bootseq_len);
+               env_set_hex("bootseq", bootseq);
        }
 
        /*