From 2275776d21768c18570a2a4bf7d8b2fff8088dc5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 6 Feb 2018 09:29:49 +0100 Subject: dwc_otg: Default to USB host mode In case no "dr_mode" property is present in the device tree, then default to USB host mode. This is necessary to support the Cyclone V SoC Development Kit. --- freebsd/sys/dev/usb/controller/dwc_otg_fdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c b/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c index 4acbfa4c..791d9890 100644 --- a/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c +++ b/freebsd/sys/dev/usb/controller/dwc_otg_fdt.c @@ -110,6 +110,8 @@ dwc_otg_attach(device_t dev) device_printf(dev, "Invalid FDT dr_mode: %s\n", usb_mode); } + } else { + sc->sc_otg.sc_mode = DWC_MODE_HOST; } /* get all DMA memory */ -- cgit v1.2.3