diff mbox series

bus: mhi: pci_generic: Add Foxconn T99W510

Message ID 20230329072239.93632-1-slark_xiao@163.com (mailing list archive)
State Not Applicable
Headers show
Series bus: mhi: pci_generic: Add Foxconn T99W510 | expand

Commit Message

Slark Xiao March 29, 2023, 7:22 a.m. UTC
The Foxconn T99W510 device is designed based on Qualcomm
SDX24. Add 3 variants for different potential customer.

Signed-off-by: Slark Xiao <slark_xiao@163.com>
---
 drivers/bus/mhi/host/pci_generic.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

Manivannan Sadhasivam April 3, 2023, 5:20 a.m. UTC | #1
On Wed, Mar 29, 2023 at 03:22:39PM +0800, Slark Xiao wrote:
> The Foxconn T99W510 device is designed based on Qualcomm
> SDX24. Add 3 variants for different potential customer.
> 
> Signed-off-by: Slark Xiao <slark_xiao@163.com>

Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>

- Mani

> ---
>  drivers/bus/mhi/host/pci_generic.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
> index 91d02f84ba21..db0a0b062d8e 100644
> --- a/drivers/bus/mhi/host/pci_generic.c
> +++ b/drivers/bus/mhi/host/pci_generic.c
> @@ -363,6 +363,15 @@ static const struct mhi_controller_config modem_foxconn_sdx55_config = {
>  	.event_cfg = mhi_foxconn_sdx55_events,
>  };
>  
> +static const struct mhi_pci_dev_info mhi_foxconn_sdx24_info = {
> +	.name = "foxconn-sdx24",
> +	.config = &modem_foxconn_sdx55_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_sdx55_info = {
>  	.name = "foxconn-sdx55",
>  	.fw = "qcom/sdx55m/sbl1.mbn",
> @@ -587,6 +596,15 @@ static const struct pci_device_id mhi_pci_id_table[] = {
>  	/* T99W373 (sdx62) */
>  	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0d9),
>  		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx65_info },
> +	/* T99W510 (sdx24), variant 1 */
> +	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f0),
> +		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
> +	/* T99W510 (sdx24), variant 2 */
> +	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f1),
> +		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
> +	/* T99W510 (sdx24), variant 3 */
> +	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f2),
> +		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
>  	/* MV31-W (Cinterion) */
>  	{ PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b3),
>  		.driver_data = (kernel_ulong_t) &mhi_mv31_info },
> -- 
> 2.34.1
>
Manivannan Sadhasivam April 3, 2023, 5:21 a.m. UTC | #2
On Wed, Mar 29, 2023 at 03:22:39PM +0800, Slark Xiao wrote:
> The Foxconn T99W510 device is designed based on Qualcomm
> SDX24. Add 3 variants for different potential customer.
> 
> Signed-off-by: Slark Xiao <slark_xiao@163.com>

Applied to mhi-next!

- Mani

> ---
>  drivers/bus/mhi/host/pci_generic.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
> index 91d02f84ba21..db0a0b062d8e 100644
> --- a/drivers/bus/mhi/host/pci_generic.c
> +++ b/drivers/bus/mhi/host/pci_generic.c
> @@ -363,6 +363,15 @@ static const struct mhi_controller_config modem_foxconn_sdx55_config = {
>  	.event_cfg = mhi_foxconn_sdx55_events,
>  };
>  
> +static const struct mhi_pci_dev_info mhi_foxconn_sdx24_info = {
> +	.name = "foxconn-sdx24",
> +	.config = &modem_foxconn_sdx55_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_sdx55_info = {
>  	.name = "foxconn-sdx55",
>  	.fw = "qcom/sdx55m/sbl1.mbn",
> @@ -587,6 +596,15 @@ static const struct pci_device_id mhi_pci_id_table[] = {
>  	/* T99W373 (sdx62) */
>  	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0d9),
>  		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx65_info },
> +	/* T99W510 (sdx24), variant 1 */
> +	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f0),
> +		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
> +	/* T99W510 (sdx24), variant 2 */
> +	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f1),
> +		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
> +	/* T99W510 (sdx24), variant 3 */
> +	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f2),
> +		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
>  	/* MV31-W (Cinterion) */
>  	{ PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b3),
>  		.driver_data = (kernel_ulong_t) &mhi_mv31_info },
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
index 91d02f84ba21..db0a0b062d8e 100644
--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -363,6 +363,15 @@  static const struct mhi_controller_config modem_foxconn_sdx55_config = {
 	.event_cfg = mhi_foxconn_sdx55_events,
 };
 
+static const struct mhi_pci_dev_info mhi_foxconn_sdx24_info = {
+	.name = "foxconn-sdx24",
+	.config = &modem_foxconn_sdx55_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_sdx55_info = {
 	.name = "foxconn-sdx55",
 	.fw = "qcom/sdx55m/sbl1.mbn",
@@ -587,6 +596,15 @@  static const struct pci_device_id mhi_pci_id_table[] = {
 	/* T99W373 (sdx62) */
 	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0d9),
 		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx65_info },
+	/* T99W510 (sdx24), variant 1 */
+	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f0),
+		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
+	/* T99W510 (sdx24), variant 2 */
+	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f1),
+		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
+	/* T99W510 (sdx24), variant 3 */
+	{ PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0f2),
+		.driver_data = (kernel_ulong_t) &mhi_foxconn_sdx24_info },
 	/* MV31-W (Cinterion) */
 	{ PCI_DEVICE(PCI_VENDOR_ID_THALES, 0x00b3),
 		.driver_data = (kernel_ulong_t) &mhi_mv31_info },