mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 04:30:30 +08:00
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.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user