[U-Boot] [PATCH V3 08/20] usb: gadget: mv_udc: add MX6Q specific reset

Marek Vasut marex at denx.de
Fri Aug 2 12:58:23 CEST 2013


Dear Troy Kisky,

Why are you adding this? Any kind of explanation is missing.

> Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
> 
> ---
> 	I don't know if this is needed, but it doesn't hurt.
> ---
>  drivers/usb/gadget/mv_udc.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
> index 359b8e1..26f193d 100644
> --- a/drivers/usb/gadget/mv_udc.c
> +++ b/drivers/usb/gadget/mv_udc.c
> @@ -13,6 +13,7 @@
>  #include <config.h>
>  #include <net.h>
>  #include <malloc.h>
> +#include <asm/arch/sys_proto.h>
>  #include <asm/io.h>
>  #include <linux/types.h>
>  #include <usb/mv_udc.h>
> @@ -569,6 +570,9 @@ static int mv_pullup(struct usb_gadget *gadget, int
> is_on) /* RESET */
>  		writel(USBCMD_ITC(MICRO_8FRAME) | USBCMD_RST, &udc->usbcmd);
>  		udelay(200);
> +#if defined(CONFIG_MX6Q) || defined(CONFIG_MX6DL)
> +		reset_usb_phy1();
> +#endif
> 
>  		writel((unsigned)controller.epts, &udc->epinitaddr);

Best regards,
Marek Vasut


More information about the U-Boot mailing list