From patchwork Wed Mar 29 07:22:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slark Xiao X-Patchwork-Id: 76398 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp227074vqo; Wed, 29 Mar 2023 00:32:15 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+Wt11by5xCBB/As6T32eMPEAIPRzmfOemrvfooLhyXcIuze08pHX+7ChmLb0miw2NXVdu X-Received: by 2002:a17:907:a395:b0:946:c1d2:8b53 with SMTP id se21-20020a170907a39500b00946c1d28b53mr5107628ejc.72.1680075135002; Wed, 29 Mar 2023 00:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680075134; cv=none; d=google.com; s=arc-20160816; b=gGHbuG5dTMJWgV/gs3hPSy9TZhGdcTSp+oITaRZkeltC/feq2mP2FV9dqL/rGKdAZQ 104byf8562m1nAGA9zauJ2K1xzRpp30P2MYanLeG64BKE+YEdgoLmG99fchleLQ/E9fp RM9yeayasTom2A7TjIJBA1Qe86INxIx61kWqXYx30W3FPm7GgbReu1uj1mb8Hvqo5y8b cyiO/o+R4kJtVC+LQL4k3ACdQyuh/uMYccdJBl7deWygk3UrUXgZfC7HMgyER6xCD7BH Vgj88x/FmcmGvflE8/23Pni5NQuoai04ZEZM9aSvCsQaB0CGhrFaBnHETGJz73X+oZ2i XSAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=k1+81/LRc+QPaXuwviz1ZmJdBJ9jC4z0SLIYlLcZv/k=; b=OSvhKevqAlroee7/6NxNDueP3hq7hZKl2HwAUx1kYLndW8RwDsrx1W0D7WPjc/u3iU s22lQEL29hiTQWSnV7aRr9ct7EZ7PHWChIUKHl8YVIzlIC9cnDfE75az95flgyuhlRoG /t5a9ElvEGos6v0Vj9bxAszqjeRWuqvVcMUEyrPnzMJtkfgzY8FwkeU+0Zx8hp39Grue Zrznb6rEmJYD68LqxiWCm7NrwK0c2CpYQhHV0u2upa44C+M3DXJ5CGEM13lJQjQ3UrjT tkI/lAl3j2GpIsAvz4hjuE3FIivyf+EBXY9nLvjktTdnMJLWMb/Iv7oDwYPMTmLKjqKy 8PwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Q3Uk9BKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a170906155700b0093330a0fc5asi25078818ejd.447.2023.03.29.00.31.51; Wed, 29 Mar 2023 00:32:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Q3Uk9BKq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbjC2HXU (ORCPT + 99 others); Wed, 29 Mar 2023 03:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjC2HXS (ORCPT ); Wed, 29 Mar 2023 03:23:18 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 99E051BF6; Wed, 29 Mar 2023 00:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=k1+81 /LRc+QPaXuwviz1ZmJdBJ9jC4z0SLIYlLcZv/k=; b=Q3Uk9BKqp9bm4WreWBohS 3UY8tW52mSI2m0XIzrh4xHhEO7e2msTRdPViif9KUd3UALF07sfOMTOKWIji5gWm nR6y/r9LK5UXkOxuX+tlrxUDwX25v2aj5pkAEbWl/+AInzV9sDoaFcBOJPP+0eCJ ynQdZfOL9hxWPqfKfifmnk= Received: from VM-0-27-ubuntu.. (unknown [43.134.191.38]) by zwqz-smtp-mta-g1-3 (Coremail) with SMTP id _____wA3TzdD5yNk5z4EAA--.1365S2; Wed, 29 Mar 2023 15:22:45 +0800 (CST) From: Slark Xiao To: mani@kernel.org Cc: mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Slark Xiao Subject: [PATCH] bus: mhi: pci_generic: Add Foxconn T99W510 Date: Wed, 29 Mar 2023 15:22:39 +0800 Message-Id: <20230329072239.93632-1-slark_xiao@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: _____wA3TzdD5yNk5z4EAA--.1365S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uw1UZr1DCw1Duw1DWFWxJFb_yoW8CF1UpF savryUta1kJFWYkFsrJrWDXas8JanxCry3KFn7Gw1Y9r4vyayYqrs7Gry29Fy3Kas8Xr43 tFy8uFWUW3WqyF7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pEgAwnUUUUU= X-Originating-IP: [43.134.191.38] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/1tbiNQlBZGI0cAnPYAABsY X-Spam-Status: No, score=1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_VALIDITY_RPBL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761686464990107507?= X-GMAIL-MSGID: =?utf-8?q?1761686464990107507?= The Foxconn T99W510 device is designed based on Qualcomm SDX24. Add 3 variants for different potential customer. Signed-off-by: Slark Xiao Reviewed-by: Manivannan Sadhasivam --- 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 },