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:
Sebastian Huber 2018-02-06 09:29:49 +01:00
parent b79c025a12
commit 2275776d21

View File

@ -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 */