From: Michal Simek Date: Mon, 11 Jan 2021 12:46:58 +0000 (+0100) Subject: xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes X-Git-Url: http://git.dujemihanovic.xyz/html/static/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=2784befbd7ef21b77ad246ce258f06e4aa711d81;p=u-boot.git xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes 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 --- diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 047b070485..459d9b1e47 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -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); } /*