diff mbox series

xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes

Message ID d90a3216655b4879bdc69037c33a438ce1c74b15.1610369301.git.michal.simek@xilinx.com
State Accepted
Commit 2784befbd7ef21b77ad246ce258f06e4aa711d81
Delegated to: Michal Simek
Headers show
Series xilinx: zynqmp: Save bootseq number for SD/EMMC boot modes | expand

Commit Message

Michal Simek Jan. 11, 2021, 12:48 p.m. UTC
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>
---

 board/xilinx/zynqmp/zynqmp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michal Simek Jan. 20, 2021, 7:49 a.m. UTC | #1
po 11. 1. 2021 v 13:48 odesílatel Michal Simek <michal.simek@xilinx.com> napsal:
>
> 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>
> ---
>
>  board/xilinx/zynqmp/zynqmp.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
> index 047b07048597..459d9b1e47e1 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);
>         }
>
>         /*
> --
> 2.30.0
>

Applied.
M
diff mbox series

Patch

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 047b07048597..459d9b1e47e1 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);
 	}
 
 	/*