]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bus: mhi: host: pci_generic: Add Foxconn T99W760 modem
authorSlark Xiao <slark_xiao@163.com>
Wed, 19 Nov 2025 10:56:14 +0000 (18:56 +0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Thu, 20 Nov 2025 05:58:47 +0000 (11:28 +0530)
T99W760 modem is based on Qualcomm SDX35 chipset. It uses the same channel
configurations of Foxconn SDX61 modem. Hence, add support for it by reusing
the 'modem_foxconn_sdx61_config' config structure.

The EDL firmware for this modem has been pushed to linux-firmware.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
[mani: reworded description]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Link: https://patch.msgid.link/20251119105615.48295-2-slark_xiao@163.com
drivers/bus/mhi/host/pci_generic.c

index 3d8c9729fcfc57f38315d0386e2d2bdf8b7a8e1d..e3bc737313a2f0658bc9b9c4f7d85258aec2474c 100644 (file)
@@ -663,6 +663,17 @@ static const struct mhi_pci_dev_info mhi_foxconn_t99w696_info = {
        .sideband_wake = false,
 };
 
+static const struct mhi_pci_dev_info mhi_foxconn_t99w760_info = {
+       .name = "foxconn-t99w760",
+       .edl = "qcom/sdx35/foxconn/xbl_s_devprg_ns.melf",
+       .edl_trigger = true,
+       .config = &modem_foxconn_sdx61_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),
@@ -1010,6 +1021,8 @@ static const struct pci_device_id mhi_pci_id_table[] = {
        /* DW5934e(sdx72), Non-eSIM */
        { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe11e),
                .driver_data = (kernel_ulong_t) &mhi_foxconn_dw5934e_info },
+       { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe123),
+               .driver_data = (kernel_ulong_t) &mhi_foxconn_t99w760_info },
        /* MV31-W (Cinterion) */
        { PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b3),
                .driver_data = (kernel_ulong_t) &mhi_mv31_info },