Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751789AbdISJot (ORCPT ); Tue, 19 Sep 2017 05:44:49 -0400 Received: from mail-co1nam03on0070.outbound.protection.outlook.com ([104.47.40.70]:17232 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751754AbdISJoj (ORCPT ); Tue, 19 Sep 2017 05:44:39 -0400 From: Zhiqiang Hou To: , , , , , , , , , , , , CC: Hou Zhiqiang Subject: [PATCH 3/5] PCI: layerscape: Add support for ls1012a Date: Tue, 19 Sep 2017 17:26:56 +0800 Message-ID: <20170919092658.22482-4-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170919092658.22482-1-Zhiqiang.Hou@nxp.com> References: <20170919092658.22482-1-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502878779311106;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7966004)(336005)(376002)(346002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(2950100002)(6666003)(86362001)(6636002)(77096006)(1076002)(72206003)(2906002)(5660300001)(498600001)(47776003)(575784001)(2201001)(110136005)(50986999)(36756003)(316002)(16586007)(104016004)(76176999)(50226002)(356003)(105606002)(305945005)(8676002)(106466001)(81166006)(81156014)(48376002)(50466002)(97736004)(8936002)(53936002)(7416002)(4326008)(68736007)(5003940100001)(8656003)(189998001)(921003)(1121003)(2101003)(83996005);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR03MB2357;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD039;1:9I0Fi5qPOgAtX8bn7l+coAVOAmukCAZGDqEq+atO2tvN18mNRw8hai2veD4+cwfnj1eQXUiUKw1nXvPyOw80nYz/GBp4i3lKke5QAwjg4YLAKKNM381ZBZQ4tgis+fId MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 366617f8-e8a5-4a33-0402-08d4ff430b0c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2357;3:BlpfJH4H7N0jpuQBjlumIiXMVyZq5nFiCj3ORDSkhGsKwEqbSVcm6U2RVNewyYiZF/UVX7mQf3rUcg82V3+b2nhlrE2Zc921tHc1wXPn9tI3WFVqXcJR/kszD/pByMcUo7wUsBE2vHlWpZBIRoTjpLITv3OcFB6H9OXIQRvVrIXYlSBNbrwPQDxVbohmUv7U0bHjIvX9MErwa2rga8fyPILdLqb04KnEJyL7Bhuc0yCeLdIfpYCWV8scVg4yW872PGtRDFge663oiHiFL122pRavVp8RPiduRsDbDn6qjStGLbG2d9CxDpqO/dj7tMhwe0HoActhp/KjI1vSmcF1FGYYl+5LQoS+22bJjqq2d7M=;25:2mqSU7nDeb7mX9Ozh/lKf+sC8DECrxAO+U/oLWA5rOlTk987B6jj8cdgux3ltOlNMc7/zq575O6JftwpzcPYwQ3SFXA/QTjSWgPyYg+u9E4lWn50OSt/vD+1+ivRg51vccPR9eS4YFJQWNN36Arl9LXPvqEduZgw3O5eq+A96cicWgIndrcKy+vwX2l6UJxt074Rf0ehgrGp77aHUrTBRmXkdF9jY5wD1RfXdd6Gky9ztK4WISm1S6aDEC9wfgPtKwy90IYujEqyWfy0ZPjyMdqwxYj8fAzPCLzYL2mjcBrDfUYTpB/ftwPW6DeIFFAweXsSLeILqM7ufefvCeFhWQ== X-MS-TrafficTypeDiagnostic: CO2PR03MB2357: X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2357;31:5mIRRZzfkAEwLuIeODzSeaSLPkyYgZApgAA+qQ44PIRDhW0Jcm/Rfs56p3oQyh4b4e/dSwuTFxArj3M7m/ykOOufCTV1eLkItAK+yoEpSO72RgrfZCjZXAzpEu5vFl/WAjWY8WYl7Z7JcDj5ke3QTa27esJIBc9X1g6U6U4NfHYhSIBSgFPXJLUccSTm7DJ//jOfcx/UV+TgY7UylEQQ/OItYnWPnW3VlG59sThiu2A=;4:cxMr2FAXYX2rGnyJw1dQ6pN02ePKFqDdRTL1v36/xx2VuqKPVzKvveUXWouzd6cvIVveoNxQ4WdLk12NNVbN2tKGf96VFT44Q7eSfdqd+eD3HRigcCgTUiInoCKuRQmiqe2aTJf7WC007ZpcYEjGHqgVtCOHuxKpOH2Eh+nuiHlf/SqiHhgNK4nztR4WmV+lHxTxJzC5deNouCEu2D2gMv58INOx/gDs9D3UwYfa1tQKRFEqIT9jRgNH6s5DpCFd9uEkzFX92pkh/M3/76LAve3ot62Fk6X3EZb1GqMd1yI= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR03MB2357;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR03MB2357; X-Forefront-P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ElKbJ2+fagQ5EJQSYhqxY41jdxysMzobl+waINACAc1H+t+lX7bXIYK6bgHLgoQ==;24:x7feYALZUO3oZpgkYBcB3uvFhp+pLDE2kt0kZYSllbu3+hYNywYF9A0YMHgYu/Yvt8vu25vI3SpvQqAivMSzh4J9tnMPGRyhZ580cmFmhuE=;7:wEI6rL9BB1m6WwabO/AKESm0cdpKZAwPKpDZ7PJBo3p2kbGNBTYYdjTTe/b5+jo2H1Iqlf+IDj4EPqcIFFZoa74/MydvrDIqqe3Egay621HWkcGtoK+0KWpjqdqyLHlJZzL3+UTbZsroYcHtYlj1+K0uzZnV0cHS/U7SMYdoX6vcVflHoy4DlcApPJHXbYQ062dVQp104k5gBXLNlYZgrvjrlrirFDNOiUNmhAgXNyE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 09:44:37.7127 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR03MB2357 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1519 Lines: 34 From: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + drivers/pci/dwc/pci-layerscape.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt index c0484da0f20d..66df1e81e0b8 100644 --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt @@ -18,6 +18,7 @@ Required properties: "fsl,ls2088a-pcie" "fsl,ls1088a-pcie" "fsl,ls1046a-pcie" + "fsl,ls1012a-pcie" - reg: base addresses and lengths of the PCIe controller register blocks. - interrupts: A list of interrupt outputs of the controller. Must contain an entry for each entry in the interrupt-names property. diff --git a/drivers/pci/dwc/pci-layerscape.c b/drivers/pci/dwc/pci-layerscape.c index 87fa486bee2c..3b01e309a55e 100644 --- a/drivers/pci/dwc/pci-layerscape.c +++ b/drivers/pci/dwc/pci-layerscape.c @@ -253,6 +253,7 @@ static 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,ls1043a-pcie", .data = &ls1043_drvdata }, { .compatible = "fsl,ls1046a-pcie", .data = &ls1046_drvdata }, -- 2.14.1