Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2250771ybh; Sun, 4 Aug 2019 21:17:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0fjOmThq5kGlXdRm5sHvuQdVGXINg6arQx+vV3X0TJQPtusa9UcJnD6mS8dfrYPP+kIn2 X-Received: by 2002:a63:cb4b:: with SMTP id m11mr61504433pgi.49.1564978637983; Sun, 04 Aug 2019 21:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564978637; cv=none; d=google.com; s=arc-20160816; b=e5/P0wdSM3IfZUbBR6MN2eeyFmnNG3qa6kAL2pqSJ8GNG6C6qFnIngRkc2xSX12v75 jfFb+H75Pdes+dR/KVD8NESloU67Dys7ajtTUck4/Zmkxy2XJdQJCOWOO6m3usPGYAUt tNBIzsmOeSEaJm5wNyfcJ1fXyu1Bq+0AV+QwRjQTiFZ3mes6jLNQ1m+KFTU+CmJLHTba Er4yJWKpoGLqF654oSlMUUZJ+UL7YuFhbTYQsfLBgWY8cupGpurOakr2F0GTcq07b0ZB QyagIus9ODPPxuQZWj4mWfHorZVjOZB+11ha4PhPab4oFI6BTfOWNC7wiQKwYlrHI4Py x5hg== 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=Xl2KjtuU68mOtPiH4BDxYgfk1zKWGDEbK9ST7dXMjy8=; b=LD4kcCwo2zL5w/ENyyrxpku3arwtN6lMRGI8bDCCQE8sURKFHnYkeiqkvJ6fesNeD9 lteeiE7C43EgA18xINksEsehsJbiRVZrKmS/JTLJRG5g/Co8D5/Ofz4CqNkX0XK4hamt 2qSmHWt/TCmFPwrB9QxpbH3WAwUei8oHyB4AG5BVkAo3Vmth6pvrpiK1wYCEaGPIEUBJ quZ6oED1Y9CXCvjmwntTPMNMlbEx278vXYJJgLqCCwQLjpUsNosE6jc5EjYlS1fdpDBn o2VCJRE7GyLlUpk56/bM0v1/vye/R7HSO3oadtiguA8sYYSF1w+BsJdWm8+m7sXM8M3d ZtgA== 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 o2si60289434pgp.288.2019.08.04.21.16.25; Sun, 04 Aug 2019 21:17:17 -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 S1727081AbfHEEOx (ORCPT + 99 others); Mon, 5 Aug 2019 00:14:53 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51770 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbfHEEOv (ORCPT ); Mon, 5 Aug 2019 00:14:51 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CBC3F1A0084; Mon, 5 Aug 2019 06:14:49 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B71521A00A9; Mon, 5 Aug 2019 06:14:38 +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 923CE402DD; Mon, 5 Aug 2019 12:14:25 +0800 (SGT) From: Xiaowei Bao To: bhelgaas@google.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, arnd@arndb.de, gregkh@linuxfoundation.org, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, zhiqiang.hou@nxp.com, roy.zang@nxp.com, kstewart@linuxfoundation.org, pombredanne@nexb.com, shawn.lin@rock-chips.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Xiaowei Bao Subject: [PATCHv2 3/3] PCI: layerscape: Add LS1028a support Date: Mon, 5 Aug 2019 12:04:53 +0800 Message-Id: <20190805040453.48009-3-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190805040453.48009-1-xiaowei.bao@nxp.com> References: <20190805040453.48009-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 support for the LS1028a PCIe controller. Signed-off-by: Xiaowei Bao --- v2: - no change. drivers/pci/controller/dwc/pci-layerscape.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/pci/controller/dwc/pci-layerscape.c b/drivers/pci/controller/dwc/pci-layerscape.c index 3a5fa26..8c556e1 100644 --- a/drivers/pci/controller/dwc/pci-layerscape.c +++ b/drivers/pci/controller/dwc/pci-layerscape.c @@ -236,6 +236,14 @@ static const struct ls_pcie_drvdata ls1043_drvdata = { .dw_pcie_ops = &dw_ls_pcie_ops, }; +static const struct ls_pcie_drvdata ls1028a_drvdata = { + .lut_offset = 0x80000, + .ltssm_shift = 0, + .lut_dbg = 0x407fc, + .ops = &ls_pcie_host_ops, + .dw_pcie_ops = &dw_ls_pcie_ops, +}; + static const struct ls_pcie_drvdata ls1046_drvdata = { .lut_offset = 0x80000, .ltssm_shift = 24, @@ -263,6 +271,7 @@ static const struct ls_pcie_drvdata ls2088_drvdata = { static const struct of_device_id ls_pcie_of_match[] = { { .compatible = "fsl,ls1012a-pcie", .data = &ls1046_drvdata }, { .compatible = "fsl,ls1021a-pcie", .data = &ls1021_drvdata }, + { .compatible = "fsl,ls1028a-pcie", .data = &ls1028a_drvdata }, { .compatible = "fsl,ls1043a-pcie", .data = &ls1043_drvdata }, { .compatible = "fsl,ls1046a-pcie", .data = &ls1046_drvdata }, { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata }, -- 2.9.5