Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp230275ybl; Tue, 13 Aug 2019 19:37:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXN2z2hgVtpOQY8uIME8yLsnrzB0l3SLZdhHKwABAbmVb/L7RGuAgdq7/YNO1FsWOjYcC+ X-Received: by 2002:a17:902:a70c:: with SMTP id w12mr13186293plq.288.1565750228388; Tue, 13 Aug 2019 19:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565750228; cv=none; d=google.com; s=arc-20160816; b=oKcJ4e+Y7/3Ww8lxoHc5GpIzlbXDihCPNV5nidkiWrWORc6tQzYUvXlOlMUj1fIirC 6sr8M7X6dIJO9+f2BjFPNFMB1hc/tQDPXHyQnLHiJ5CLrVUJnic178sLEzDI1+BTxA9i pCyOZHp0yJeAz3nqF/b/N4Yn0DVQVED/qCopijEpOXQOchD82tATw23f5YnEntIbK6+9 egwf+pJ7rOE9foOWS2ZsBU47sUwRAfOv++qSvEF5stQcvQ7QSPuRB0WhKUR59HPnzDOx WiF4TvwVOWAHhSGXI34kikTLo/ZOPQFEjXp815vB43PlzLZYFepsz23xqtgHL/Q5BU59 3W6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=WOyjx+EB7BdwvDFJuvpFvi0Z3Ctmy31lsLzSWgM6dy4=; b=g31+vP0ospRi/W/A39vb19ENpG/LGYVRSXc99HANprIUBXyeo7B5iEHwlL2sbp+Yxm kOqLThRJ8IZsaGLIwvAKWotPp4uEmjDKUMfhQ64qDfkHbbEuP8skc4G3efySRyt+7cyh hvsGixiKVci841dqT+nboilQnOlql61U3cYfheCY0IMKpqsho3ARkcK8CNJ38rDRVA66 IgDaB1eJhK8r9c0q7ERMiA2zNknX8dYlJ6xJVIAHTHVINYY/r3ZOsvMGMsDCiP99aH7/ lLmJGDXSNWAShiPiWAO2jO5CHpY7xh4AXy1sa8clYPyz/3oFZfuS5Yqii/xHW3IR+8it d3Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18si1960446pjo.105.2019.08.13.19.36.52; Tue, 13 Aug 2019 19:37:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729064AbfHNCf6 (ORCPT + 99 others); Tue, 13 Aug 2019 22:35:58 -0400 Received: from inva021.nxp.com ([92.121.34.21]:57528 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727245AbfHNCNV (ORCPT ); Tue, 13 Aug 2019 22:13:21 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EBEC420027A; Wed, 14 Aug 2019 04:13:19 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 46BC1200162; Wed, 14 Aug 2019 04:13:15 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 40CC940293; Wed, 14 Aug 2019 10:13:09 +0800 (SGT) From: Xiaowei Bao To: minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com, linuxppc-dev@lists.ozlabs.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Xiaowei Bao Subject: [PATCHv6 2/2] PCI: layerscape: Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately Date: Wed, 14 Aug 2019 10:03:30 +0800 Message-Id: <20190814020330.12133-2-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190814020330.12133-1-xiaowei.bao@nxp.com> References: <20190814020330.12133-1-xiaowei.bao@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add CONFIG_PCI_LAYERSCAPE_EP to build EP/RC separately. Signed-off-by: Xiaowei Bao --- v2: - No change. v3: - modify the commit message. v4: - send the patch again with '--to'. v5: - No change. v6: - remove the [EXT] tag of the $SUBJECT in email. drivers/pci/controller/dwc/Kconfig | 20 ++++++++++++++++++-- drivers/pci/controller/dwc/Makefile | 3 ++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig index 6ea778a..869c645 100644 --- a/drivers/pci/controller/dwc/Kconfig +++ b/drivers/pci/controller/dwc/Kconfig @@ -131,13 +131,29 @@ config PCI_KEYSTONE_EP DesignWare core functions to implement the driver. config PCI_LAYERSCAPE - bool "Freescale Layerscape PCIe controller" + bool "Freescale Layerscape PCIe controller - Host mode" depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) depends on PCI_MSI_IRQ_DOMAIN select MFD_SYSCON select PCIE_DW_HOST help - Say Y here if you want PCIe controller support on Layerscape SoCs. + Say Y here if you want to enable PCIe controller support on Layerscape + SoCs to work in Host mode. + This controller can work either as EP or RC. The RCW[HOST_AGT_PEX] + determines which PCIe controller works in EP mode and which PCIe + controller works in RC mode. + +config PCI_LAYERSCAPE_EP + bool "Freescale Layerscape PCIe controller - Endpoint mode" + depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) + depends on PCI_ENDPOINT + select PCIE_DW_EP + help + Say Y here if you want to enable PCIe controller support on Layerscape + SoCs to work in Endpoint mode. + This controller can work either as EP or RC. The RCW[HOST_AGT_PEX] + determines which PCIe controller works in EP mode and which PCIe + controller works in RC mode. config PCI_HISI depends on OF && (ARM64 || COMPILE_TEST) diff --git a/drivers/pci/controller/dwc/Makefile b/drivers/pci/controller/dwc/Makefile index b085dfd..824fde7 100644 --- a/drivers/pci/controller/dwc/Makefile +++ b/drivers/pci/controller/dwc/Makefile @@ -8,7 +8,8 @@ obj-$(CONFIG_PCI_EXYNOS) += pci-exynos.o obj-$(CONFIG_PCI_IMX6) += pci-imx6.o obj-$(CONFIG_PCIE_SPEAR13XX) += pcie-spear13xx.o obj-$(CONFIG_PCI_KEYSTONE) += pci-keystone.o -obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o pci-layerscape-ep.o +obj-$(CONFIG_PCI_LAYERSCAPE) += pci-layerscape.o +obj-$(CONFIG_PCI_LAYERSCAPE_EP) += pci-layerscape-ep.o obj-$(CONFIG_PCIE_QCOM) += pcie-qcom.o obj-$(CONFIG_PCIE_ARMADA_8K) += pcie-armada8k.o obj-$(CONFIG_PCIE_ARTPEC6) += pcie-artpec6.o -- 2.9.5