diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-06 09:29:49 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-06 09:56:35 +0100 |
commit | 2275776d21768c18570a2a4bf7d8b2fff8088dc5 (patch) | |
tree | 531d27beb45a8df1021c094845571993408a5320 /freebsd/sys/dev/usb/controller/dwc_otg_fdt.c | |
parent | dwc_otg: Add compatibility string, constify (diff) | |
download | rtems-libbsd-2275776d21768c18570a2a4bf7d8b2fff8088dc5.tar.bz2 |
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.
Diffstat (limited to 'freebsd/sys/dev/usb/controller/dwc_otg_fdt.c')
-rw-r--r-- | freebsd/sys/dev/usb/controller/dwc_otg_fdt.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |