[PATCH 1/2] imx8mm_evk: Add an entry for USB boot
Peng Fan
peng.fan at oss.nxp.com
Wed Sep 21 07:26:21 CEST 2022
On 9/20/2022 8:20 AM, Fabio Estevam wrote:
> Add an entry for USB boot so that U-Boot could be loaded via
> the Serial Download Protocol.
>
> Signed-off-by: Fabio Estevam <festevam at denx.de>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
> ---
> board/freescale/imx8mm_evk/spl.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
> index e2eb1426c8..c827ed5546 100644
> --- a/board/freescale/imx8mm_evk/spl.c
> +++ b/board/freescale/imx8mm_evk/spl.c
> @@ -33,6 +33,8 @@ DECLARE_GLOBAL_DATA_PTR;
> int spl_board_boot_device(enum boot_device boot_dev_spl)
> {
> switch (boot_dev_spl) {
> + case USB_BOOT:
> + return BOOT_DEVICE_BOARD;
> case SD2_BOOT:
> case MMC2_BOOT:
> return BOOT_DEVICE_MMC1;
More information about the U-Boot
mailing list