diff --git a/sys/arch/mips/ingenic/ingenic_dwctwo.c b/sys/arch/mips/ingenic/ingenic_dwctwo.c index 4f2590c0fe09..38cd03f52cd0 100644 --- a/sys/arch/mips/ingenic/ingenic_dwctwo.c +++ b/sys/arch/mips/ingenic/ingenic_dwctwo.c @@ -1,4 +1,4 @@ -/* $NetBSD: ingenic_dwctwo.c,v 1.8 2015/03/17 07:25:07 macallan Exp $ */ +/* $NetBSD: ingenic_dwctwo.c,v 1.9 2015/03/17 09:27:09 macallan Exp $ */ /*- * Copyright (c) 2014 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.8 2015/03/17 07:25:07 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.9 2015/03/17 09:27:09 macallan Exp $"); /* * adapted from bcm2835_dwctwo.c @@ -47,9 +47,9 @@ __KERNEL_RCSID(0, "$NetBSD: ingenic_dwctwo.c,v 1.8 2015/03/17 07:25:07 macallan #include #include #include +#include #include - #include #include "dwc2_core.h" @@ -202,6 +202,8 @@ ingenic_dwc2_deferred(device_t self) struct ingenic_dwc2_softc *sc = device_private(self); int error; + sc->sc_dwc2.sc_id_vendor = USB_VENDOR_INGENIC; + strlcpy(sc->sc_dwc2.sc_vendor, "Ingenic", sizeof(sc->sc_dwc2.sc_vendor)); error = dwc2_init(&sc->sc_dwc2); if (error != 0) { aprint_error_dev(self, "couldn't initialize host, error=%d\n", diff --git a/sys/arch/mips/ingenic/ingenic_ehci.c b/sys/arch/mips/ingenic/ingenic_ehci.c index 758c05507d87..0d240ced12f8 100644 --- a/sys/arch/mips/ingenic/ingenic_ehci.c +++ b/sys/arch/mips/ingenic/ingenic_ehci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ingenic_ehci.c,v 1.2 2015/03/17 07:25:07 macallan Exp $ */ +/* $NetBSD: ingenic_ehci.c,v 1.3 2015/03/17 09:27:09 macallan Exp $ */ /*- * Copyright (c) 2015 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ingenic_ehci.c,v 1.2 2015/03/17 07:25:07 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ingenic_ehci.c,v 1.3 2015/03/17 09:27:09 macallan Exp $"); #include #include @@ -47,6 +47,8 @@ __KERNEL_RCSID(0, "$NetBSD: ingenic_ehci.c,v 1.2 2015/03/17 07:25:07 macallan Ex #include #include +#include + #include "opt_ingenic.h" #include "ohci.h" @@ -131,6 +133,8 @@ ingenic_ehci_attach(device_t parent, device_t self, void *aux) #else sc->sc_ncomp = 0; #endif + sc->sc_id_vendor = USB_VENDOR_INGENIC; + strlcpy(sc->sc_vendor, "Ingenic", sizeof(sc->sc_vendor)); status = ehci_init(sc); if (status != USBD_NORMAL_COMPLETION) { diff --git a/sys/arch/mips/ingenic/ingenic_ohci.c b/sys/arch/mips/ingenic/ingenic_ohci.c index 69fd77d38b87..6c4fb303eb72 100644 --- a/sys/arch/mips/ingenic/ingenic_ohci.c +++ b/sys/arch/mips/ingenic/ingenic_ohci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ingenic_ohci.c,v 1.2 2015/03/17 07:25:07 macallan Exp $ */ +/* $NetBSD: ingenic_ohci.c,v 1.3 2015/03/17 09:27:09 macallan Exp $ */ /*- * Copyright (c) 2015 Michael Lorenz @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ingenic_ohci.c,v 1.2 2015/03/17 07:25:07 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ingenic_ohci.c,v 1.3 2015/03/17 09:27:09 macallan Exp $"); #include #include @@ -43,6 +43,7 @@ __KERNEL_RCSID(0, "$NetBSD: ingenic_ohci.c,v 1.2 2015/03/17 07:25:07 macallan Ex #include #include #include +#include #include #include @@ -110,9 +111,11 @@ ingenic_ohci_attach(device_t parent, device_t self, void *aux) goto fail; } - /* we don't handle endianess in bus space */ sc->sc_endian = OHCI_LITTLE_ENDIAN; + sc->sc_id_vendor = USB_VENDOR_INGENIC; + strlcpy(sc->sc_vendor, "Ingenic", sizeof(sc->sc_vendor)); + status = ohci_init(sc); if (status != USBD_NORMAL_COMPLETION) { aprint_error_dev(self, "init failed, error=%d\n", status);