Skip to content

Commit 969db85

Browse files
MankWangNetprismaMani-Sadhasivam
authored andcommitted
bus: mhi: host: pci_generic: Add support for Netprisma LCUR57 and FCUN69
Add Netprisma LCUR57 and FCUN69 hardware revision: LCUR57: 02:00.0 Unassigned class [ff00]: Device 203e:1000 Subsystem: Device 203e:1000 FCUN69: 02:00.0 Unassigned class [ff00]: Device 203e:1001 Subsystem: Device 203e:1001 Both of these modules create IP interfaces through MBIM. And these modules can be checked for successful recognition through the following command: $ mmcli -L /org/freedesktop/ModemManager1/Modem/0 [NetPrisma] LCUR57-WWD $ mmcli -L /org/freedesktop/ModemManager1/Modem/0 [NetPrisma] FCUN69-WWD Signed-off-by: Mank Wang <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/PH7PR22MB30386647BE2D813B502226CF81942@PH7PR22MB3038.namprd22.prod.outlook.com Signed-off-by: Manivannan Sadhasivam <[email protected]>
1 parent 8e54ace commit 969db85

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

drivers/bus/mhi/host/pci_generic.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
/* PCI VID definitions */
2727
#define PCI_VENDOR_ID_THALES 0x1269
2828
#define PCI_VENDOR_ID_QUECTEL 0x1eac
29+
#define PCI_VENDOR_ID_NETPRISMA 0x203e
2930

3031
#define MHI_EDL_DB 91
3132
#define MHI_EDL_COOKIE 0xEDEDEDED
@@ -689,6 +690,26 @@ static const struct mhi_pci_dev_info mhi_telit_fe990a_info = {
689690
.mru_default = 32768,
690691
};
691692

693+
static const struct mhi_pci_dev_info mhi_netprisma_lcur57_info = {
694+
.name = "netprisma-lcur57",
695+
.edl = "qcom/prog_firehose_sdx24.mbn",
696+
.config = &modem_quectel_em1xx_config,
697+
.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
698+
.dma_data_width = 32,
699+
.mru_default = 32768,
700+
.sideband_wake = true,
701+
};
702+
703+
static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
704+
.name = "netprisma-fcun69",
705+
.edl = "qcom/prog_firehose_sdx6x.elf",
706+
.config = &modem_quectel_em1xx_config,
707+
.bar_num = MHI_PCI_DEFAULT_BAR_NUM,
708+
.dma_data_width = 32,
709+
.mru_default = 32768,
710+
.sideband_wake = true,
711+
};
712+
692713
/* Keep the list sorted based on the PID. New VID should be added as the last entry */
693714
static const struct pci_device_id mhi_pci_id_table[] = {
694715
{ PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304),
@@ -787,6 +808,12 @@ static const struct pci_device_id mhi_pci_id_table[] = {
787808
/* T99W175 (sdx55), HP variant */
788809
{ PCI_DEVICE(0x03f0, 0x0a6c),
789810
.driver_data = (kernel_ulong_t) &mhi_foxconn_t99w175_info },
811+
/* NETPRISMA LCUR57 (SDX24) */
812+
{ PCI_DEVICE(PCI_VENDOR_ID_NETPRISMA, 0x1000),
813+
.driver_data = (kernel_ulong_t) &mhi_netprisma_lcur57_info },
814+
/* NETPRISMA FCUN69 (SDX6X) */
815+
{ PCI_DEVICE(PCI_VENDOR_ID_NETPRISMA, 0x1001),
816+
.driver_data = (kernel_ulong_t) &mhi_netprisma_fcun69_info },
790817
{ }
791818
};
792819
MODULE_DEVICE_TABLE(pci, mhi_pci_id_table);

0 commit comments

Comments
 (0)