|
@@ -120,6 +120,22 @@ static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg)
|
|
|
p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT;
|
|
|
}
|
|
|
|
|
|
+static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg)
|
|
|
+{
|
|
|
+ struct dwc2_core_params *p = &hsotg->params;
|
|
|
+
|
|
|
+ p->otg_cap = DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE;
|
|
|
+ p->speed = DWC2_SPEED_PARAM_FULL;
|
|
|
+ p->host_rx_fifo_size = 128;
|
|
|
+ p->host_nperio_tx_fifo_size = 96;
|
|
|
+ p->host_perio_tx_fifo_size = 96;
|
|
|
+ p->max_packet_count = 256;
|
|
|
+ p->phy_type = DWC2_PHY_TYPE_PARAM_FS;
|
|
|
+ p->i2c_enable = false;
|
|
|
+ p->uframe_sched = false;
|
|
|
+ p->activate_stm_fs_transceiver = true;
|
|
|
+}
|
|
|
+
|
|
|
const struct of_device_id dwc2_of_match_table[] = {
|
|
|
{ .compatible = "brcm,bcm2835-usb", .data = dwc2_set_bcm_params },
|
|
|
{ .compatible = "hisilicon,hi6220-usb", .data = dwc2_set_his_params },
|
|
@@ -133,6 +149,9 @@ const struct of_device_id dwc2_of_match_table[] = {
|
|
|
{ .compatible = "amlogic,meson-gxbb-usb",
|
|
|
.data = dwc2_set_amlogic_params },
|
|
|
{ .compatible = "amcc,dwc-otg", .data = dwc2_set_amcc_params },
|
|
|
+ { .compatible = "st,stm32f4x9-fsotg",
|
|
|
+ .data = dwc2_set_stm32f4x9_fsotg_params },
|
|
|
+ { .compatible = "st,stm32f4x9-hsotg" },
|
|
|
{},
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
|