diff options
author | Mathew McBride <matt@traverse.com.au> | 2023-07-21 04:39:24 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-03 09:40:50 -0400 |
commit | 080ea65692fd4ebf1040f67614c9e953f295baf5 (patch) | |
tree | 7f6d5f03ea2759c362eac04f4fcdeaa86601f4de /board | |
parent | 3c052f9b22865d9c716a54f508057dcc047fb46c (diff) | |
download | u-boot-080ea65692fd4ebf1040f67614c9e953f295baf5.tar.gz u-boot-080ea65692fd4ebf1040f67614c9e953f295baf5.tar.bz2 u-boot-080ea65692fd4ebf1040f67614c9e953f295baf5.zip |
board: traverse: ten64: init nvme devices in late boot to ensure bootflow availability
Ensure nvme devices are scanned before reaching the shell,
otherwise extra user intervention ("nvme scan") is required
before they are visible to bootdev/bootflow.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/traverse/ten64/ten64.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/traverse/ten64/ten64.c b/board/traverse/ten64/ten64.c index df44baf24f..39f0d107cd 100644 --- a/board/traverse/ten64/ten64.c +++ b/board/traverse/ten64/ten64.c @@ -31,6 +31,7 @@ #include <asm/arch/fsl_serdes.h> #include <asm/arch/soc.h> #include <asm/arch-fsl-layerscape/fsl_icid.h> +#include <nvme.h> #include <fsl_immap.h> @@ -184,6 +185,11 @@ void fdt_fixup_board_enet(void *fdt) int fsl_board_late_init(void) { ten64_board_retimer_ds110df410_init(); + + /* Ensure nvme storage devices are available to bootflow */ + if (IS_ENABLED(CONFIG_NVME)) + nvme_scan_namespace(); + return 0; } @@ -444,3 +450,4 @@ static void ten64_board_retimer_ds110df410_init(void) puts("OK\n"); } + |