* [PATCH] board: venice: add spl_board_loader_name
@ 2022-03-08 18:45 Tim Harvey
2022-03-09 1:09 ` Peng Fan
2022-04-12 21:40 ` sbabic
0 siblings, 2 replies; 3+ messages in thread
From: Tim Harvey @ 2022-03-08 18:45 UTC (permalink / raw)
To: u-boot, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team; +Cc: Tim Harvey
Implement spl_board_loader_name to provide more meaningful device names
vs MMC1 and MMC2.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
board/gateworks/venice/spl.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index 8b301570577c..b56e1b607d58 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -301,3 +301,17 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
return BOOT_DEVICE_NONE;
}
}
+
+const char *spl_board_loader_name(u32 boot_device)
+{
+ switch (boot_device) {
+ /* SDHC2 */
+ case BOOT_DEVICE_MMC1:
+ return "eMMC";
+ /* SDHC3 */
+ case BOOT_DEVICE_MMC2:
+ return "SD card";
+ default:
+ return NULL;
+ }
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] board: venice: add spl_board_loader_name
2022-03-08 18:45 [PATCH] board: venice: add spl_board_loader_name Tim Harvey
@ 2022-03-09 1:09 ` Peng Fan
2022-04-12 21:40 ` sbabic
1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2022-03-09 1:09 UTC (permalink / raw)
To: tharvey@gateworks.com, u-boot@lists.denx.de, Stefano Babic,
Fabio Estevam, dl-uboot-imx
Cc: tharvey@gateworks.com
> Subject: [PATCH] board: venice: add spl_board_loader_name
>
> Implement spl_board_loader_name to provide more meaningful device
> names vs MMC1 and MMC2.
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Nice. Reviewed-by: Peng Fan <peng.fan@nxp.com>
> ---
> board/gateworks/venice/spl.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
> index 8b301570577c..b56e1b607d58 100644
> --- a/board/gateworks/venice/spl.c
> +++ b/board/gateworks/venice/spl.c
> @@ -301,3 +301,17 @@ int spl_board_boot_device(enum boot_device
> boot_dev_spl)
> return BOOT_DEVICE_NONE;
> }
> }
> +
> +const char *spl_board_loader_name(u32 boot_device) {
> + switch (boot_device) {
> + /* SDHC2 */
> + case BOOT_DEVICE_MMC1:
> + return "eMMC";
> + /* SDHC3 */
> + case BOOT_DEVICE_MMC2:
> + return "SD card";
> + default:
> + return NULL;
> + }
> +}
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] board: venice: add spl_board_loader_name
2022-03-08 18:45 [PATCH] board: venice: add spl_board_loader_name Tim Harvey
2022-03-09 1:09 ` Peng Fan
@ 2022-04-12 21:40 ` sbabic
1 sibling, 0 replies; 3+ messages in thread
From: sbabic @ 2022-04-12 21:40 UTC (permalink / raw)
To: Tim Harvey, u-boot
> Implement spl_board_loader_name to provide more meaningful device names
> vs MMC1 and MMC2.
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-12 21:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-08 18:45 [PATCH] board: venice: add spl_board_loader_name Tim Harvey
2022-03-09 1:09 ` Peng Fan
2022-04-12 21:40 ` sbabic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox