From patchwork Tue Aug 27 11:02:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 1153753 X-Patchwork-Delegate: prabhakar@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="VeFh9cbl"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46HmGC2nDRz9s00 for ; Tue, 27 Aug 2019 21:04:03 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C60DDC21FBA; Tue, 27 Aug 2019 11:03:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id F333BC2203D; Tue, 27 Aug 2019 11:02:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6EA03C21E9F; Tue, 27 Aug 2019 11:02:54 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60048.outbound.protection.outlook.com [40.107.6.48]) by lists.denx.de (Postfix) with ESMTPS id 14C2FC21E9F for ; Tue, 27 Aug 2019 11:02:54 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gkzki8VDJ/CXT3HGyVgSRdaMeZIry4wYC61b4OeZhfvMdCoHd50f0IjwRgVCDFpe+wD2OR7Acgs5wuu9+uxlkXMhhjl92w+i73smCQWnDVbK8jnJUh7xWc8nYX7KhKoKpHbdR3OpZADTYahxkIlOkbfRI/WijUkT+wK5gQAkdGv0fS4aOF4q4PY7/J/vvMDNsRepEVI6ubvvLWlyk9KDc0G+qLBNZySCR8bd2OQEmQAaeKIr+4V0shsdHCXy0G1oK+YDRPQFlGADRFiAsOocNNIHxZzGzcLYEaZrPXI6N7+smKA6c4G64j7TP5pu2jBKkBYrmoXKfN2wu7iUS8OhUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nMFQEUrli3eUM+QWX0ZYLvDXp4mWaEoqQLeXTaKIf1s=; b=YWYbcH/Sj7H3jZd6D80jVyBg8Kea4Ia/02+zGtjP9fjQXl1+HlXFBRW2Lhw9Q6Ly3AZsmaqMEuX9jPIipt6EIBAl51EtGjRuzT6yx8Fo7mzf2YtoJPOuMjh1BTtD8P0Yq9pXENoJWmMYjgYm5umrEFmIU8pd1lh19DGK9DkknxjACG+gHu3LBo+Xr1wvEi+c+EeEOwCEMImcV7eDJeBjk2fZwPSgr6SBtLlTSNSbVSzax1Ox+Pwaaa+SR/VOxow/WK9oaCK4kCxR8Z0cF3ICARIwJJb+ijs+hrBqIilapr5hjKbmc6S8FGAMW2iQUo55T90wk+7F4EOyWOeoSNJTNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nMFQEUrli3eUM+QWX0ZYLvDXp4mWaEoqQLeXTaKIf1s=; b=VeFh9cblFN1/Z39ooNyhaRUJRUMgpgSGnU4P/TIW1UNQtk0W2hGOQPS5roiTdcfjvU/dAa3yJYpFpX5QxnwtZvr8cRFVR7rgrPVPPmV3Er2vKzR+7rZo3iBwDSWgc68fwUW1HHcxgVTcgDfe/KCkagOH/E72vUMXaodmxuRkWSM= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB6874.eurprd04.prod.outlook.com (52.133.243.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Tue, 27 Aug 2019 11:02:53 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::7c8a:ab5d:dc27:be5f]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::7c8a:ab5d:dc27:be5f%6]) with mapi id 15.20.2199.021; Tue, 27 Aug 2019 11:02:53 +0000 From: "Z.q. Hou" To: "u-boot@lists.denx.de" , Prabhakar Kushwaha , "wd@denx.de" , Priyanka Jain , Shengzhou Liu , "bmeng.cn@gmail.com" Thread-Topic: [PATCHv2 01/47] powerpc: T208xRDB: Compile legacy PCIe routines conditionally Thread-Index: AQHVXMb5hsRGSOwn6kibd8WXw3UNAg== Date: Tue, 27 Aug 2019 11:02:52 +0000 Message-ID: <20190827110440.11523-2-Zhiqiang.Hou@nxp.com> References: <20190827110440.11523-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190827110440.11523-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::27) To DB8PR04MB6747.eurprd04.prod.outlook.com (2603:10a6:10:10b::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 08e378e7-88aa-46f2-4c1e-08d72ade1b5c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:DB8PR04MB6874; x-ms-traffictypediagnostic: DB8PR04MB6874: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1360; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(396003)(136003)(39860400002)(376002)(346002)(199004)(189003)(8676002)(5660300002)(66946007)(52116002)(66556008)(8936002)(64756008)(66446008)(66476007)(4326008)(1076003)(53936002)(6436002)(6486002)(25786009)(486006)(66066001)(86362001)(6116002)(71190400001)(4744005)(476003)(11346002)(110136005)(2616005)(71200400001)(478600001)(6512007)(316002)(446003)(2906002)(14454004)(76176011)(386003)(186003)(6506007)(99286004)(36756003)(26005)(305945005)(256004)(81156014)(2501003)(102836004)(81166006)(7736002)(3846002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB8PR04MB6874; H:DB8PR04MB6747.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gJaYPnNADdRK7QgejlWoMDhVtgnJUdi32yGCNRN/ik67hKHQC4eyvj8JviIBgyO0TaKU+wnB5eK7PhlkHoC+W75paFQHoKrnpdNzD412bxtwaQYatFHGiRoErfc9ZUdgaHcGja42S4EdfqMwv5hocfnSPWSnCqw0Um3SXv/dN5QrSaTK/SM73V1y9U+gdbKAtsfi/ymIW0o8uyjYJdsczLzfAUrOgW01qcLzDEQmj12FqQuIWK9CdqcFquTwq9kDlw+XvOt8bYwG8V4yRWtgZOxwAMjWq77nRY/oKItiWa2+8wzpfLnbDbG1BS988isC3IEEJct1p+MFY3tUQyjWJTJJoMUiRXvSxOOef3JLiOpjnj/FXR1ebf/S4BiQtP09WvuslONF3rfHI/HiPVB5E4fafl+gL+31vLDUTqdPSN0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08e378e7-88aa-46f2-4c1e-08d72ade1b5c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2019 11:02:53.0092 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9ap+WlY4oeShScIk9aRnAs7HaxlWoMsKWxB1EYWNUPECATrUzvtqESPrwmM7E+HYsbLOaW2pHlblyQDBATeZyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6874 Cc: "Z.q. Hou" Subject: [U-Boot] [PATCHv2 01/47] powerpc: T208xRDB: Compile legacy PCIe routines conditionally X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Hou Zhiqiang Compile the legacy PCIe initialization reoutines only when DM_PCI is not enabled. Signed-off-by: Hou Zhiqiang Reviewed-by: Bin Meng --- V2: - Rebased the patch. board/freescale/t208xrdb/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/t208xrdb/pci.c b/board/freescale/t208xrdb/pci.c index 161b8cb403..adc128d924 100644 --- a/board/freescale/t208xrdb/pci.c +++ b/board/freescale/t208xrdb/pci.c @@ -11,6 +11,7 @@ #include #include +#if !defined(CONFIG_DM_PCI) void pci_init_board(void) { fsl_pcie_init_board(0); @@ -20,3 +21,4 @@ void pci_of_setup(void *blob, bd_t *bd) { FT_FSL_PCI_SETUP; } +#endif