[U-Boot] [PATCH V5 18/31] imx: cpu: support get_boot_device for i.MX8M

Stefano Babic sbabic at denx.de
Sun Jan 21 16:33:21 UTC 2018



On 10/01/2018 06:20, Peng Fan wrote:
> Enable get_boot_device for i.MX8M, it supports boot type USB.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> ---
>  arch/arm/mach-imx/cpu.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c
> index a7d89f2033..4d4d434906 100644
> --- a/arch/arm/mach-imx/cpu.c
> +++ b/arch/arm/mach-imx/cpu.c
> @@ -410,7 +410,7 @@ u32 get_cpu_temp_grade(int *minc, int *maxc)
>  }
>  #endif
>  
> -#if defined(CONFIG_MX7)
> +#if defined(CONFIG_MX7) || defined(CONFIG_MX8M)
>  enum boot_device get_boot_device(void)
>  {
>  	struct bootrom_sw_info **p =
> @@ -439,6 +439,11 @@ enum boot_device get_boot_device(void)
>  	case BOOT_TYPE_SPINOR:
>  		boot_dev = SPI_NOR_BOOT;
>  		break;
> +#ifdef CONFIG_MX8M
> +	case BOOT_TYPE_USB:
> +		boot_dev = USB_BOOT;
> +		break;
> +#endif
>  	default:
>  		break;
>  	}
> 
Reviewed-by: Stefano Babic <sbabic at denx.de>

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 at denx.de
=====================================================================


More information about the U-Boot mailing list