mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 06:52:37 +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:
parent
b79c025a12
commit
2275776d21
@ -110,6 +110,8 @@ dwc_otg_attach(device_t dev)
|
|||||||
device_printf(dev, "Invalid FDT dr_mode: %s\n",
|
device_printf(dev, "Invalid FDT dr_mode: %s\n",
|
||||||
usb_mode);
|
usb_mode);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
sc->sc_otg.sc_mode = DWC_MODE_HOST;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get all DMA memory */
|
/* get all DMA memory */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user