bus: mhi: host: Add support for Foxconn SDX72 modems
Add support for Foxconn SDX72 based modems, T99W515 and DW5934E. Existing SDX55 channel/event configs are reused with the custom ready_timeout_ms value to workaround firmware issue. Signed-off-by: Slark Xiao <slark_xiao@163.com> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20240701021216.17734-1-slark_xiao@163.com [mani: reworded subject and description] Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
parent
f08d4bdad6
commit
bf30a75e6e
@ -399,6 +399,8 @@ static const struct mhi_channel_config mhi_foxconn_sdx55_channels[] = {
|
||||
MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0),
|
||||
MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
|
||||
MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
|
||||
MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
|
||||
MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
|
||||
MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2),
|
||||
MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3),
|
||||
};
|
||||
@ -419,6 +421,16 @@ static const struct mhi_controller_config modem_foxconn_sdx55_config = {
|
||||
.event_cfg = mhi_foxconn_sdx55_events,
|
||||
};
|
||||
|
||||
static const struct mhi_controller_config modem_foxconn_sdx72_config = {
|
||||
.max_channels = 128,
|
||||
.timeout_ms = 20000,
|
||||
.ready_timeout_ms = 50000,
|
||||
.num_channels = ARRAY_SIZE(mhi_foxconn_sdx55_channels),
|
||||
.ch_cfg = mhi_foxconn_sdx55_channels,
|
||||
.num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events),
|
||||
.event_cfg = mhi_foxconn_sdx55_events,
|
||||
};
|
||||
|
||||
static const struct mhi_pci_dev_info mhi_foxconn_sdx55_info = {
|
||||
.name = "foxconn-sdx55",
|
||||
.fw = "qcom/sdx55m/sbl1.mbn",
|
||||
@ -488,6 +500,28 @@ static const struct mhi_pci_dev_info mhi_foxconn_dw5932e_info = {
|
||||
.sideband_wake = false,
|
||||
};
|
||||
|
||||
static const struct mhi_pci_dev_info mhi_foxconn_t99w515_info = {
|
||||
.name = "foxconn-t99w515",
|
||||
.edl = "fox/sdx72m/edl.mbn",
|
||||
.edl_trigger = true,
|
||||
.config = &modem_foxconn_sdx72_config,
|
||||
.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
|
||||
.dma_data_width = 32,
|
||||
.mru_default = 32768,
|
||||
.sideband_wake = false,
|
||||
};
|
||||
|
||||
static const struct mhi_pci_dev_info mhi_foxconn_dw5934e_info = {
|
||||
.name = "foxconn-dw5934e",
|
||||
.edl = "fox/sdx72m/edl.mbn",
|
||||
.edl_trigger = true,
|
||||
.config = &modem_foxconn_sdx72_config,
|
||||
.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
|
||||
.dma_data_width = 32,
|
||||
.mru_default = 32768,
|
||||
.sideband_wake = false,
|
||||
};
|
||||
|
||||
static const struct mhi_channel_config mhi_mv3x_channels[] = {
|
||||
MHI_CHANNEL_CONFIG_UL(0, "LOOPBACK", 64, 0),
|
||||
MHI_CHANNEL_CONFIG_DL(1, "LOOPBACK", 64, 0),
|
||||
@ -720,6 +754,15 @@ static const struct pci_device_id mhi_pci_id_table[] = {
|
||||
/* DW5932e (sdx62), Non-eSIM */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f9),
|
||||
.driver_data = (kernel_ulong_t) &mhi_foxconn_dw5932e_info },
|
||||
/* T99W515 (sdx72) */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe118),
|
||||
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w515_info },
|
||||
/* DW5934e(sdx72), With eSIM */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe11d),
|
||||
.driver_data = (kernel_ulong_t) &mhi_foxconn_dw5934e_info },
|
||||
/* DW5934e(sdx72), Non-eSIM */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe11e),
|
||||
.driver_data = (kernel_ulong_t) &mhi_foxconn_dw5934e_info },
|
||||
/* MV31-W (Cinterion) */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b3),
|
||||
.driver_data = (kernel_ulong_t) &mhi_mv31_info },
|
||||
|
Loading…
Reference in New Issue
Block a user