Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp268308yba; Wed, 15 May 2019 00:37:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWGW4bEG6+w4QPlffhNM+XDq4AXlp9BihWpWOX6LmmloBnNXTCB1SfqLkrk2roQ0W3fryv X-Received: by 2002:a63:5443:: with SMTP id e3mr42181681pgm.265.1557905871092; Wed, 15 May 2019 00:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557905871; cv=none; d=google.com; s=arc-20160816; b=HfWV86eWq4jFrdXF9g7TzY0bcKUKJOLBYFQSYtF7y5/WSP5pSwx4o9BqJ3VnIqs7R4 xxNnsEhFzsS/As6c4H57kM2aqtfglVVEQJi8KvY2mlbmOTJK1EaFlNxleuqinkGx59h5 d+L2LhXARrW+kyGdCqpOlQZ14cAuFFiQ/zmAZHo8E8ZmrLdKAUOt8uc72FgvL2UGwTtm 8jePZO0YKLPqGBM6WqPD+h1yMfm2O9mvkXfI6efOY9tu+3S4Be1iKDiwPRXzlHw72g8X XfYPeHJH4VYx7c3Y2KbU5CdJiivEptnxz8sLX+vTmDaP60qzhaU5oA+OwlQvuQw2Xi9Q +78A== 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=i7SE8mVnfwRfsqdwpgQWdlJi0MuUBuHsuxaeFbsbkNI=; b=tl+y57KuFcUu5A7klZJJZGMerbRMBLijhaHI4C10kPAn/Rwtlx0X4SJhPzZVj8qmxm 7DpOExeiGk1LXBu0NnjmxFylKU58r5s8fXzPkhCYxNMEwES+CwUFfb9fXvon++YphOvl gbAolf9FHhdtQQ/qig8txJyS4oJENJstbzoXC8Wh3eBUFcHVtTnisfUwVU3yZ6rM4QlU m/NxCvQ4wGp1SwUaao6R7tfavZygz6NzpAzLHzBuqalqrRZwMwZzKnE0WC/RwDYPKt3M A4+WF5m67eWRrZlQnVXQjlcEDhVErzAiocSk9zBjxW9VhUcfWeOoJHEJpzM+2xbJdHlP YdJA== 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 b10si1398361pfo.248.2019.05.15.00.37.36; Wed, 15 May 2019 00:37:51 -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 S1726566AbfEOHgL (ORCPT + 99 others); Wed, 15 May 2019 03:36:11 -0400 Received: from inva020.nxp.com ([92.121.34.13]:47454 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbfEOHgK (ORCPT ); Wed, 15 May 2019 03:36:10 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1007C1A00A1; Wed, 15 May 2019 09:36:08 +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 40EAB1A00D9; Wed, 15 May 2019 09:35:59 +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 3EDBE4030C; Wed, 15 May 2019 15:35:48 +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, 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: [PATCH 3/3] PCI: layerscape: Add LS1028a support Date: Wed, 15 May 2019 15:27:47 +0800 Message-Id: <20190515072747.39941-3-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190515072747.39941-1-xiaowei.bao@nxp.com> References: <20190515072747.39941-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 --- drivers/pci/controller/dwc/pci-layerscape.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) 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 int ls_pcie_msi_host_init(struct pcie_port *pp) .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 int ls_pcie_msi_host_init(struct pcie_port *pp) 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 }, -- 1.7.1