From patchwork Fri May 31 03:53:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 165494 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp186034ili; Thu, 30 May 2019 20:54:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpyux4MXuAnDAwz9h4A6m953T16ltXP/zDlhUpDZLJFFO6LMTQVI8UVWwkZWwEJC3OdlT8 X-Received: by 2002:a63:8449:: with SMTP id k70mr6987931pgd.208.1559274857242; Thu, 30 May 2019 20:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559274857; cv=none; d=google.com; s=arc-20160816; b=jsR85xJyt+BTolVyqzW4BhHcKpctHC6fupCamy9km5bTzOxFIiM6Y6UaVtlRFOFJf+ BfqI3Bz8zOe52Tp7m4B4cBOOkH5UDbTIXB4KZ5vv40D1Pqnd0bLqcE2yDtOQRnpskXSU BD6fuZ9EUsi0MmQpPfT+s8Kzvv8zVyOwFgsExe/yg4hYKfipBNXwLNaAGmjr/kTM8n6A TUP6+DWyhQSxpbGOoow+ccodOAuXJ5S46LZGYakNcQtuLtHhu/0GJZfjxGydjLXMZEbp D0lmKT5ikzi0Do1K/Jhj0LFvRmppkMPlyJbi85Xg6jHxePQs1z/uEQinPhSgA/J2pN/B mvGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hqFf2+cwBc4XPU/wNoeNiXzq2lmzHpPCTPDaeLdQu4s=; b=DYzXlvwmVoc3StO0LOQyeLWZBYP5XWn9hL0bLsV5q7O43kpb7teN7aw01Bm97YBHJb 9DRtfa5pfok9pBAXL4ujd1R1y6cYuB7pqQejtxUvU6Yxb39te+FQ2FozdB7HjZnwlkpN RYtS971lMKzeT7cJHxL9oDkH75bZvu4WP7takJ/H7ibsm4y5Hi58XpPP2WIxF29U2oSx J24RRfkf3mrGPLS6ph90ftr3JeoP1I8U2PeUKIbAsyxH6Y8464pWOHcb350mOx0CMbZV KdBrbYNagfESZIliKjMPHBfMZxTxK8AcRsAuS8HSa4a1RiGogEyIz65Rc5zl/w/miL+s u27A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwV6lcEW; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si4637715pgl.45.2019.05.30.20.54.16; Thu, 30 May 2019 20:54:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwV6lcEW; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbfEaDyQ (ORCPT + 7 others); Thu, 30 May 2019 23:54:16 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:40103 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbfEaDyP (ORCPT ); Thu, 30 May 2019 23:54:15 -0400 Received: by mail-it1-f194.google.com with SMTP id h11so13032005itf.5 for ; Thu, 30 May 2019 20:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hqFf2+cwBc4XPU/wNoeNiXzq2lmzHpPCTPDaeLdQu4s=; b=dwV6lcEWrxc5B6DJHcpq3zyz85EXyb7kFr66i80SndfVrNSU4O6J2BhCuq4xE9YuzG QJEmlxKobURV1wOZvw/c6rRePWj08be/9fs9y2H4V4dAqvoWGBzKvPWGy3M/GlkBE0dG fB0+1S4FXZaI2IcfQfZRZVtRvdl6d9HBSKFx7wjh0vvlKTQbnW0gnMSsdPc4JZbOEZxZ 9+ldXNVSP69hgIFuV09GrO8sJw5L3I7P9UL2lk12RFXNAOLaRkF4zItXR5B1Uy4SSQ5S 2lnj0k2mR9SfKdIkG9tTaENn3hV+GHxRfykjUcndTjGzcKr5Fj37FZl1j9/iwIRDGMNH /bvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hqFf2+cwBc4XPU/wNoeNiXzq2lmzHpPCTPDaeLdQu4s=; b=attpYA1YbOLUMyQkaaB65QLvxpQBussKhThnIDWsS7DtOX9L0etbDqqCJlvaSickff 6mkU/MyZrKCAqD1xyUxr03XclenRtVQtxgfxrGZ1Y8/CWN0xmCvQo9VzvWu+ohC781Ks +HQbqJF8ztOTF9B+JjSNpcUxNvAsj7lypOXG+SGUnskjtRaLdAhVxpJ6izt0g4Jvk3pa IK8AQyL+gsxYlDI79xCuD1AWLq2BIGYVf04NhZ6tGXBIVz4lnB2ZLZwCCeAFvzsTxJP0 IYflZQl/mXeFlccw5CWTh15QVo3fVx7Wdob8fbo2ulT6A/HskxddvhLm6bjtCAVB3mnP iAtg== X-Gm-Message-State: APjAAAVyzcl1QqJSNDRZ9i0npnsv+i3d90MwI0IGj3BBZSFjqQxNsIvi HCUmBTia2ri4IMRoaxUKbeudzw== X-Received: by 2002:a24:a09:: with SMTP id 9mr5343497itw.146.1559274854371; Thu, 30 May 2019 20:54:14 -0700 (PDT) Received: from localhost.localdomain (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.gmail.com with ESMTPSA id q15sm1626947ioi.15.2019.05.30.20.54.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 20:54:13 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, arnd@arndb.de, bjorn.andersson@linaro.org, ilias.apalodimas@linaro.org Cc: evgreen@chromium.org, benchan@google.com, ejcaruso@google.com, cpratapa@codeaurora.org, syadagir@codeaurora.org, subashab@codeaurora.org, abhishek.esse@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 14/17] soc: qcom: ipa: support build of IPA code Date: Thu, 30 May 2019 22:53:45 -0500 Message-Id: <20190531035348.7194-15-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190531035348.7194-1-elder@linaro.org> References: <20190531035348.7194-1-elder@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add build and Kconfig support for the Qualcomm IPA driver. Signed-off-by: Alex Elder --- drivers/net/Kconfig | 2 ++ drivers/net/Makefile | 1 + drivers/net/ipa/Kconfig | 16 ++++++++++++++++ drivers/net/ipa/Makefile | 7 +++++++ 4 files changed, 26 insertions(+) create mode 100644 drivers/net/ipa/Kconfig create mode 100644 drivers/net/ipa/Makefile -- 2.20.1 diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 48e209e55843..d87fe174eb9f 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -388,6 +388,8 @@ source "drivers/net/fddi/Kconfig" source "drivers/net/hippi/Kconfig" +source "drivers/net/ipa/Kconfig" + config NET_SB1000 tristate "General Instruments Surfboard 1000" depends on PNP diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 0d3ba056cda3..ff8918fe09b0 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -45,6 +45,7 @@ obj-$(CONFIG_ETHERNET) += ethernet/ obj-$(CONFIG_FDDI) += fddi/ obj-$(CONFIG_HIPPI) += hippi/ obj-$(CONFIG_HAMRADIO) += hamradio/ +obj-$(CONFIG_IPA) += ipa/ obj-$(CONFIG_PLIP) += plip/ obj-$(CONFIG_PPP) += ppp/ obj-$(CONFIG_PPP_ASYNC) += ppp/ diff --git a/drivers/net/ipa/Kconfig b/drivers/net/ipa/Kconfig new file mode 100644 index 000000000000..b1e3f7405992 --- /dev/null +++ b/drivers/net/ipa/Kconfig @@ -0,0 +1,16 @@ +config IPA + tristate "Qualcomm IPA support" + depends on NET + select QCOM_QMI_HELPERS + select QCOM_MDT_LOADER + default n + help + Choose Y here to include support for the Qualcomm IP Accelerator + (IPA), a hardware block present in some Qualcomm SoCs. The IPA + is a programmable protocol processor that is capable of generic + hardware handling of IP packets, including routing, filtering, + and NAT. Currently the IPA driver supports only basic transport + of network traffic between the AP and modem, on the Qualcomm + SDM845 SoC. + + If unsure, say N. diff --git a/drivers/net/ipa/Makefile b/drivers/net/ipa/Makefile new file mode 100644 index 000000000000..a43039c09a25 --- /dev/null +++ b/drivers/net/ipa/Makefile @@ -0,0 +1,7 @@ +obj-$(CONFIG_IPA) += ipa.o + +ipa-y := ipa_main.o ipa_clock.o ipa_mem.o \ + ipa_interrupt.o gsi.o gsi_trans.o \ + ipa_gsi.o ipa_smp2p.o ipa_uc.o \ + ipa_endpoint.o ipa_cmd.o ipa_netdev.o \ + ipa_qmi.o ipa_qmi_msg.o ipa_data-sdm845.o