[U-Boot] [PATCH 1/6] usb: dwc2: Add support for v3 snpsid value

Marek Vasut marex at denx.de
Tue May 12 20:30:03 CEST 2015


On Tuesday, May 12, 2015 at 03:38:27 PM, Peter Griffin wrote:
> This has been tested to the extent that I can enumerate
> a asix usb networking adapter and boot a kernel over usb
> on the 96boards hikey u-boot port I'm currently doing.
> 
> Signed-off-by: Peter Griffin <peter.griffin at linaro.org>
> ---
>  drivers/usb/host/dwc2.c | 3 ++-
>  drivers/usb/host/dwc2.h | 1 +
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
> index e8142ac..19a6007 100644
> --- a/drivers/usb/host/dwc2.c
> +++ b/drivers/usb/host/dwc2.c
> @@ -1015,7 +1015,8 @@ int usb_lowlevel_init(int index, enum usb_init_type
> init, void **controller) snpsid = readl(&regs->gsnpsid);
>  	printf("Core Release: %x.%03x\n", snpsid >> 12 & 0xf, snpsid & 0xfff);
> 
> -	if ((snpsid & DWC2_SNPSID_DEVID_MASK) != DWC2_SNPSID_DEVID_VER_2xx) {
> +	if ((snpsid & DWC2_SNPSID_DEVID_MASK) != DWC2_SNPSID_DEVID_VER_2xx &&
> +	    (snpsid & DWC2_SNPSID_DEVID_MASK) != DWC2_SNPSID_DEVID_VER_3xx) {

Isn't this then a DWC3 controller instead ?

Best regards,
Marek Vasut


More information about the U-Boot mailing list