mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-09 07:54:00 +00:00
usb: dwc2: add support for STM32F7xx USB OTG HS
This patch adds the dwc2_set_params function for STM32F7xx USB OTG HS. Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
000777dadc
commit
d8fae8b936
1 changed files with 11 additions and 0 deletions
|
@ -136,6 +136,15 @@ static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg)
|
||||||
p->activate_stm_fs_transceiver = true;
|
p->activate_stm_fs_transceiver = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void dwc2_set_stm32f7xx_hsotg_params(struct dwc2_hsotg *hsotg)
|
||||||
|
{
|
||||||
|
struct dwc2_core_params *p = &hsotg->params;
|
||||||
|
|
||||||
|
p->host_rx_fifo_size = 622;
|
||||||
|
p->host_nperio_tx_fifo_size = 128;
|
||||||
|
p->host_perio_tx_fifo_size = 256;
|
||||||
|
}
|
||||||
|
|
||||||
const struct of_device_id dwc2_of_match_table[] = {
|
const struct of_device_id dwc2_of_match_table[] = {
|
||||||
{ .compatible = "brcm,bcm2835-usb", .data = dwc2_set_bcm_params },
|
{ .compatible = "brcm,bcm2835-usb", .data = dwc2_set_bcm_params },
|
||||||
{ .compatible = "hisilicon,hi6220-usb", .data = dwc2_set_his_params },
|
{ .compatible = "hisilicon,hi6220-usb", .data = dwc2_set_his_params },
|
||||||
|
@ -154,6 +163,8 @@ const struct of_device_id dwc2_of_match_table[] = {
|
||||||
{ .compatible = "st,stm32f4x9-fsotg",
|
{ .compatible = "st,stm32f4x9-fsotg",
|
||||||
.data = dwc2_set_stm32f4x9_fsotg_params },
|
.data = dwc2_set_stm32f4x9_fsotg_params },
|
||||||
{ .compatible = "st,stm32f4x9-hsotg" },
|
{ .compatible = "st,stm32f4x9-hsotg" },
|
||||||
|
{ .compatible = "st,stm32f7xx-hsotg",
|
||||||
|
.data = dwc2_set_stm32f7xx_hsotg_params },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
|
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
|
||||||
|
|
Loading…
Add table
Reference in a new issue