From bc261dbf6442a5e20379e0c73fe34d6341a006c0 Mon Sep 17 00:00:00 2001 From: Prudhvi Yarlagadda Date: Tue, 13 Sep 2022 18:09:22 -0700 Subject: [PATCH] msm: bus: mhi: Add device info structure for sdx75 Add the device information structure for sdx75 along with its device id, firmware and edl image paths. Remove the kconfig dependency on the esoc driver. Change-Id: Iea7b3e82f274804d781bdbc333b36c64784eef33 Signed-off-by: Prudhvi Yarlagadda --- drivers/bus/mhi/controllers/Kconfig | 2 +- drivers/bus/mhi/controllers/mhi_qcom.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/bus/mhi/controllers/Kconfig b/drivers/bus/mhi/controllers/Kconfig index a35b65518cb4..28b4a3384bb7 100644 --- a/drivers/bus/mhi/controllers/Kconfig +++ b/drivers/bus/mhi/controllers/Kconfig @@ -4,7 +4,7 @@ menu "MHI controllers" config MHI_QCOM tristate "MHI QCOM" - depends on MHI_BUS && MHI_BUS_MISC && QCOM_ESOC_MDM_DRV + depends on MHI_BUS && MHI_BUS_MISC help If you say yes to this option, MHI bus support for QCOM modem chipsets will be enabled. QCOM PCIe based modems uses MHI as the communication diff --git a/drivers/bus/mhi/controllers/mhi_qcom.c b/drivers/bus/mhi/controllers/mhi_qcom.c index 25c63994956b..eb07e29b8f94 100644 --- a/drivers/bus/mhi/controllers/mhi_qcom.c +++ b/drivers/bus/mhi/controllers/mhi_qcom.c @@ -249,6 +249,21 @@ static const struct mhi_pci_dev_info mhi_qcom_sdx65_info = { .drv_support = false, }; +static const struct mhi_pci_dev_info mhi_qcom_sdx75_info = { + .device_id = 0x0309, + .name = "esoc0", + .fw_image = "sdx75m/xbl.elf", + .edl_image = "sdx75m/edl.mbn", + .config = &modem_qcom_sdx65_mhi_config, + .bar_num = MHI_PCI_BAR_NUM, + .dma_data_width = 64, + .allow_m1 = false, + .skip_forced_suspend = true, + .sfr_support = true, + .timesync = true, + .drv_support = false, +}; + static const struct mhi_pci_dev_info mhi_qcom_debug_info = { .device_id = MHI_PCIE_DEBUG_ID, .name = "qcom-debug", @@ -267,6 +282,8 @@ static const struct mhi_pci_dev_info mhi_qcom_debug_info = { static const struct pci_device_id mhi_pcie_device_id[] = { { PCI_DEVICE(MHI_PCIE_VENDOR_ID, 0x0308), .driver_data = (kernel_ulong_t) &mhi_qcom_sdx65_info }, + { PCI_DEVICE(MHI_PCIE_VENDOR_ID, 0x0309), + .driver_data = (kernel_ulong_t) &mhi_qcom_sdx75_info }, { PCI_DEVICE(MHI_PCIE_VENDOR_ID, MHI_PCIE_DEBUG_ID), .driver_data = (kernel_ulong_t) &mhi_qcom_debug_info }, { }