Skip to content

Commit 4e3297e

Browse files
dnlplmgregkh
authored andcommitted
bus: mhi: host: pci_generic: Add Telit FN920C04 modem support
commit 6348f62 upstream. Add SDX35 based modem Telit FN920C04. $ lspci -vv 01:00.0 Unassigned class [ff00]: Qualcomm Device 011a Subsystem: Device 1c5d:2020 Signed-off-by: Daniele Palmas <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Fabio Porcedda <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d1ab7f9 commit 4e3297e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

drivers/bus/mhi/host/pci_generic.c

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,42 @@ static const struct mhi_pci_dev_info mhi_telit_fe990a_info = {
698698
.mru_default = 32768,
699699
};
700700

701+
static const struct mhi_channel_config mhi_telit_fn920c04_channels[] = {
702+
MHI_CHANNEL_CONFIG_UL_SBL(2, "SAHARA", 32, 0),
703+
MHI_CHANNEL_CONFIG_DL_SBL(3, "SAHARA", 32, 0),
704+
MHI_CHANNEL_CONFIG_UL(4, "DIAG", 64, 1),
705+
MHI_CHANNEL_CONFIG_DL(5, "DIAG", 64, 1),
706+
MHI_CHANNEL_CONFIG_UL(14, "QMI", 32, 0),
707+
MHI_CHANNEL_CONFIG_DL(15, "QMI", 32, 0),
708+
MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0),
709+
MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0),
710+
MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0),
711+
MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0),
712+
MHI_CHANNEL_CONFIG_UL(92, "DUN2", 32, 1),
713+
MHI_CHANNEL_CONFIG_DL(93, "DUN2", 32, 1),
714+
MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0", 128, 2),
715+
MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0", 128, 3),
716+
};
717+
718+
static const struct mhi_controller_config modem_telit_fn920c04_config = {
719+
.max_channels = 128,
720+
.timeout_ms = 50000,
721+
.num_channels = ARRAY_SIZE(mhi_telit_fn920c04_channels),
722+
.ch_cfg = mhi_telit_fn920c04_channels,
723+
.num_events = ARRAY_SIZE(mhi_telit_fn990_events),
724+
.event_cfg = mhi_telit_fn990_events,
725+
};
726+
727+
static const struct mhi_pci_dev_info mhi_telit_fn920c04_info = {
728+
.name = "telit-fn920c04",
729+
.config = &modem_telit_fn920c04_config,
730+
.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
731+
.dma_data_width = 32,
732+
.sideband_wake = false,
733+
.mru_default = 32768,
734+
.edl_trigger = true,
735+
};
736+
701737
static const struct mhi_pci_dev_info mhi_netprisma_lcur57_info = {
702738
.name = "netprisma-lcur57",
703739
.edl = "qcom/prog_firehose_sdx24.mbn",
@@ -720,6 +756,9 @@ static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
720756

721757
/* Keep the list sorted based on the PID. New VID should be added as the last entry */
722758
static const struct pci_device_id mhi_pci_id_table[] = {
759+
/* Telit FN920C04 (sdx35) */
760+
{PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x011a, 0x1c5d, 0x2020),
761+
.driver_data = (kernel_ulong_t) &mhi_telit_fn920c04_info },
723762
{ PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304),
724763
.driver_data = (kernel_ulong_t) &mhi_qcom_sdx24_info },
725764
{ PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0306, PCI_VENDOR_ID_QCOM, 0x010c),

0 commit comments

Comments
 (0)