[PATCH 5/8] usb: ehci-mx6: Allow building SDP for imx8mm
Marek Vasut
marex at denx.de
Sat Jul 3 22:57:11 CEST 2021
On 7/3/21 9:58 PM, Fabio Estevam wrote:
> After selecting USB SDP support for i.MX8MM, there are some build errors
> and warnings.
>
> Make the necessary adjustments for fixing the build.
>
> Signed-off-by: Fabio Estevam <festevam at denx.de>
> ---
> drivers/usb/host/ehci-mx6.c | 18 ++++++++++--------
> 1 file changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
> index de53f0c15204..16cd1369aef1 100644
> --- a/drivers/usb/host/ehci-mx6.c
> +++ b/drivers/usb/host/ehci-mx6.c
> @@ -141,12 +141,12 @@ static void __maybe_unused
> usb_power_config_mx6(void *anatop, int anatop_bits_index) { }
> #endif
>
> -#if defined(CONFIG_MX7) && !defined(CONFIG_PHY)
> +#if (defined(CONFIG_MX7) || defined(CONFIG_IMX8M)) && !defined(CONFIG_PHY)
This should never happen -- MX8M should always enable CONFIG_PHY.
More information about the U-Boot
mailing list