From patchwork Mon Jan 30 10:43:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 721819 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3vCJTX2bktz9srY for ; Tue, 31 Jan 2017 18:55:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E0584AB68; Tue, 31 Jan 2017 08:55:20 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9bFaIOIeD2tR; Tue, 31 Jan 2017 08:55:20 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 83F334ABD8; Tue, 31 Jan 2017 08:55:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2D66B4AB68 for ; Mon, 30 Jan 2017 12:00:37 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VxJ-6uosOFRg for ; Mon, 30 Jan 2017 12:00:37 +0100 (CET) X-Greylist: delayed 927 seconds by postgrey-1.34 at theia; Mon, 30 Jan 2017 12:00:32 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0074.outbound.protection.outlook.com [104.47.38.74]) by theia.denx.de (Postfix) with ESMTPS id 6E4CB4A99B for ; Mon, 30 Jan 2017 12:00:32 +0100 (CET) Received: from BLUPR0301CA0027.namprd03.prod.outlook.com (10.162.113.165) by BY2PR0301MB0744.namprd03.prod.outlook.com (10.160.63.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 10:45:06 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::184) by BLUPR0301CA0027.outlook.office365.com (2a01:111:e400:5259::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12 via Frontend Transport; Mon, 30 Jan 2017 10:45:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Mon, 30 Jan 2017 10:45:05 +0000 Received: from localhost.localdomain.ap.freescale.net ([10.232.14.21]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v0UAiwK7007490; Mon, 30 Jan 2017 03:45:02 -0700 From: Bharat Bhushan To: , , , Date: Mon, 30 Jan 2017 16:13:10 +0530 Message-ID: <1485772992-22241-2-git-send-email-Bharat.Bhushan@nxp.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1485772992-22241-1-git-send-email-Bharat.Bhushan@nxp.com> References: <1485772992-22241-1-git-send-email-Bharat.Bhushan@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131302467058779886; (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)(7916002)(336005)(39400400002)(39450400003)(39850400002)(39380400002)(39860400002)(39840400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(85426001)(76176999)(50466002)(47776003)(5001770100001)(97736004)(48376002)(189998001)(38730400001)(6666003)(356003)(36756003)(68736007)(305945005)(2201001)(104016004)(92566002)(86362001)(50986999)(2950100002)(53936002)(4326007)(2906002)(8656002)(5003940100001)(5660300001)(8676002)(626004)(106466001)(54906002)(81166006)(105606002)(81156014)(50226002)(77096006)(8936002)(15760500002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0744; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:u5BFum0Mz9ukM+JHVnQJepOwpTpofI/Jdr3Ghiqt/F1ygTd8cyCWDF9Y5msGZfCu8mGH9K59sFe05TVK+/dw6Awhlwi+mXn5at2gWeVfjQ2uQNKEtIG0RG8YZA+KxAwr7WI+KoatA8X3SL/W/NPcUievoYsfszLWFXEwmHuH6nRPc7a/vqlcC46kj1xGPYPHrywX2Ns/QT/IoNCbBdr426MqT9sMCGUHyppSTHIx1Mk6KFrXV9IV8FPD9kEXo2FxH7rwNwZI/m55Rv9EL2578WVTx8N+m/phghN+m31RRJ5m7J7jsnYWYLLVMsGySWT4f/jpqdb358lZpmctBa5xPQhEOLQTo8yqww/HaerO9TuSr+TsxdjapEYGXv0j/za+6vu94CvUeobY7UoZa+A/3mxNzgKTysdvgUyQ2A6xF+4OGO8ybRKGJCQ4UdvjvwZM9dpAYArlzmATXfcnUZjRe1nsaLMnlYqxR9QMbXUiKe0nZ5vu6UFqwLG5J6dP80+Vx8oHBGaC/X5t+orV1o7WlKaYRE7WNlbVU8+v07OOkndCEDFFt8Cpc8sir2HAAUV4rrgRGdiGVPoHnffLh5yOxuLkZNv89BGbxryIhxBbuHxzP76hUKHHHTDD37WCZysSUHky5W4bTW2DtfcLDDXx5uKpnxvknUStWNQIpZTDjO8= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 6d304ecd-be79-41b0-6592-08d448fd0da0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB0744; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0744; 3:1YlTvQxOtitzdKsoZGPsTCO7swh/JT7aK8iW9DGtb7mrN0XYQkakJWJpRXYvurWHYU+7jGJtn2RoO+NlYLYr0lpe+6YQmtWJOVvUFfHPGjTZA8BlacNfPBO6XjxX4ZjVijxRQ8NYmONHGAcok/kvgo2va/lT6G7C0TdPKsQQsG2y3KFaxlmQONAubnCYIRU6+W0m5dd61ipNfxzol8VmoRonMn1mD4fbM9rp5w4iWEQDnvv+gNCrDzu6Jw3BzRDOKXAAx529537duXdNyAAbsVlgdmJl3O/jydVlC7x5bhIe+O3CBDijSHnDc67fy2PPZPpEi1HeBdneRZ3V1esJrgphKoVsDordHVnC9ocmK+FrzQVEjXkdXSZseJV4bWpn X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0744; 25:evhgp5yrvLTVwqBFOvbpE545NU+tteN+EuIBjXfbWykj8oLRRE7H9Ri3L3rXzHNW7G1l0QhKNvG7dxF6nY/StmlVUFCLmDSyVer4HvM5uvurc+v5mY+mEJSLpxHRTwF2KJlGRFQLKEdqz+MX3gyk13ut9TKAnElDilQRLBigSB9rYLebpTPxrysgY9tx3D0mYpAHtJYkDL6cKqfsSgznlxPLB7i5qG1puOJJSnRWei59slRDq2gUa7TQB9iBwvWr+SIZZnpHBLnhoUBMKPi0S+9tQdkrNdG3DJRQTRuaIFdli/jfBjmHyRZIdOVPA4dOb8S0HC7DgHypdtc+3aNVblvgpllN5Ih1iaE+N6q7+c6X05af+qeA/cWXbi+lws2RS6iA+DXcgr9E18z8Gd6z1uVS433XKfi5HNuQMJ0IIVLlT8bd7cqU2JJt0PEUzfvCV56FcQeBrm2aBgXxpHhqEBmmoM6Ow80Zy0KLCR2wS96vunsAClj43Tuw21MDch1bekg6DakMsXE6m8Atq6NMIj3mqxxbJSoqThIIEzBTttSYGYy/X6aEip1g1B0JK2I9AuHNk+27Fvz8WsGGDy2HylYK6dIdfW5EgLQSibfx9o6oYUSh6AKKLa1IDq7AGGwNymUD390qJjnnejiVAask1lv9wmKxAtIC4mnH+C8gP82wGeAB0HYDXsUCqVnQJESO3JwI8p75Xx2PVojIh2UGzzn4AKW3UNxgUo6/B/Cqf2a6C/3uOHTNFknkfLLOtWryPvzaCU1tGZxYRuMJhF/bbw== X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0744; 31:MAiOkTKSKRqIXf7sFDsI1qY5B2P5uY6Ao7GXs2nG0OIfW+BYgLPqC0Rvc4JbEN60GnUUiIBIJ9tmAyo/829PhoRexL8cQ4gOkRDWM07xnPCC8E+s1Yw6RVerIFFZqyyayNFZ5+P0pBRLKru2yFVBfWj5lt+KmFGPBnWt4Em4GPmvbEpvxESARU6+xajeqk3uaSN+mscQ12KpPLKfRKg3oj2rzSmVQJtp7hN/kNlkwBz70PARfxgOJrQVpOdKVrtLtVTF+AtaMkvbM6pgeC7vsQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13017025)(13015025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:BY2PR0301MB0744; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0744; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0744; 4:ST7eXvXOyFrnyHTZsVdSyvXoIjSrR07q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YaLLRTWRhYKk50sStc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0744; 7:YRbwYHz3p93FMu2egqWgHTDn43AEiXjGJd4KULpFmn+ENPlMSwwq+8SF6heUAHj4YNWqEMOKKR6HHM5mbz5WSnz3MPyM1f+m1RxIOIBj0QwEkuCD7jOqC31KhUO6bizRWS8KPZMnyLqDOuqI145jRGSxe1AUTvE0trJa2xaRyJVXIQTt+2jrivzwxkbc40Sv2fxQMsg+3iIL+29PnJIMTx0gnYdfDM5vWnaGg70WlYbAfYlQaeDkq+fSmkEK+5PxfEmzmi/Gr9pCrJtqyqT7ftkNypl0Ge+4SYp7MuIgKoWrrHYganwZdsVQLu+ZUd7oTOqTwqZ5Mg4g8ddj7sKV20to7yGrERaHRUO9b+sxqVgxn9gdLK92e2vFZk+KfJONIZydsb5+yNJnJ36yVlfPLiG23HqkfUVyi2ywoxruchtbvCKMkzeL7X3+L/W1XNY4t9Acd3wSL7//dhiTQIiNNg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2017 10:45:05.6907 (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: BY2PR0301MB0744 X-Mailman-Approved-At: Tue, 31 Jan 2017 08:55:03 +0100 Cc: albert.u.boot@aribaud.net Subject: [U-Boot] [PATCH 1/3] fsl-lsch3: rename ls2080a_stream_id.h to stream_id_lsch3.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" The stream ID allocation for Chasis3.0 devices, LS1088, LS2088 and LS2080, can be shared. This patch renames this accordingly. Signed-off-by: Bharat Bhushan --- .../asm/arch-fsl-layerscape/ls2080a_stream_id.h | 77 ---------------------- .../asm/arch-fsl-layerscape/stream_id_lsch3.h | 77 ++++++++++++++++++++++ include/configs/ls2080a_common.h | 2 +- 3 files changed, 78 insertions(+), 78 deletions(-) delete mode 100644 arch/arm/include/asm/arch-fsl-layerscape/ls2080a_stream_id.h create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch3.h diff --git a/arch/arm/include/asm/arch-fsl-layerscape/ls2080a_stream_id.h b/arch/arm/include/asm/arch-fsl-layerscape/ls2080a_stream_id.h deleted file mode 100644 index ee28323..0000000 --- a/arch/arm/include/asm/arch-fsl-layerscape/ls2080a_stream_id.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2014 Freescale Semiconductor, Inc. - * - * SPDX-License-Identifier: GPL-2.0+ - * - */ -#ifndef __FSL_STREAM_ID_H -#define __FSL_STREAM_ID_H - -/* - * Stream IDs on ls2080a devices are not hardwired and are - * programmed by sw. There are a limited number of stream IDs - * available, and the partitioning of them is scenario dependent. - * This header defines the partitioning between legacy, PCI, - * and DPAA2 devices. - * - * This partitioning can be customized in this file depending - * on the specific hardware config: - * - * -non-PCI legacy, platform devices (USB, SD/MMC, SATA, DMA) - * -all legacy devices get a unique stream ID assigned and programmed in - * their AMQR registers by u-boot - * - * -PCIe - * -there is a range of stream IDs set aside for PCI in this - * file. U-boot will scan the PCI bus and for each device discovered: - * -allocate a streamID - * -set a PEXn LUT table entry mapping 'requester ID' to 'stream ID' - * -set a msi-map entry in the PEXn controller node in the - * device tree (see Documentation/devicetree/bindings/pci/pci-msi.txt - * for more info on the msi-map definition) - * - * -DPAA2 - * -u-boot will allocate a range of stream IDs to be used by the Management - * Complex for containers and will set these values in the MC DPC image. - * -the MC is responsible for allocating and setting up 'isolation context - * IDs (ICIDs) based on the allocated stream IDs for all DPAA2 devices. - * - * On ls2080a SoCs stream IDs are programmed in AMQ registers (32-bits) for - * each of the different bus masters. The relationship between - * the AMQ registers and stream IDs is defined in the table below: - * AMQ bit streamID bit - * --------------------------- - * PL[18] 9 // privilege bit - * BMT[17] 8 // bypass translation - * VA[16] 7 // reserved - * [15] - // unused - * ICID[14:7] - // unused - * ICID[6:0] 6-0 // isolation context id - * ---------------------------- - * - */ - -#define AMQ_PL_MASK (0x1 << 18) /* priviledge bit */ -#define AMQ_BMT_MASK (0x1 << 17) /* bypass bit */ - -#define FSL_INVALID_STREAM_ID 0 - -#define FSL_BYPASS_AMQ (AMQ_PL_MASK | AMQ_BMT_MASK) - -/* legacy devices */ -#define FSL_USB1_STREAM_ID 1 -#define FSL_USB2_STREAM_ID 2 -#define FSL_SDMMC_STREAM_ID 3 -#define FSL_SATA1_STREAM_ID 4 -#define FSL_SATA2_STREAM_ID 5 -#define FSL_DMA_STREAM_ID 6 - -/* PCI - programmed in PEXn_LUT */ -#define FSL_PEX_STREAM_ID_START 7 -#define FSL_PEX_STREAM_ID_END 22 - -/* DPAA2 - set in MC DPC and alloced by MC */ -#define FSL_DPAA2_STREAM_ID_START 23 -#define FSL_DPAA2_STREAM_ID_END 63 - -#endif diff --git a/arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch3.h b/arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch3.h new file mode 100644 index 0000000..ee28323 --- /dev/null +++ b/arch/arm/include/asm/arch-fsl-layerscape/stream_id_lsch3.h @@ -0,0 +1,77 @@ +/* + * Copyright 2014 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ +#ifndef __FSL_STREAM_ID_H +#define __FSL_STREAM_ID_H + +/* + * Stream IDs on ls2080a devices are not hardwired and are + * programmed by sw. There are a limited number of stream IDs + * available, and the partitioning of them is scenario dependent. + * This header defines the partitioning between legacy, PCI, + * and DPAA2 devices. + * + * This partitioning can be customized in this file depending + * on the specific hardware config: + * + * -non-PCI legacy, platform devices (USB, SD/MMC, SATA, DMA) + * -all legacy devices get a unique stream ID assigned and programmed in + * their AMQR registers by u-boot + * + * -PCIe + * -there is a range of stream IDs set aside for PCI in this + * file. U-boot will scan the PCI bus and for each device discovered: + * -allocate a streamID + * -set a PEXn LUT table entry mapping 'requester ID' to 'stream ID' + * -set a msi-map entry in the PEXn controller node in the + * device tree (see Documentation/devicetree/bindings/pci/pci-msi.txt + * for more info on the msi-map definition) + * + * -DPAA2 + * -u-boot will allocate a range of stream IDs to be used by the Management + * Complex for containers and will set these values in the MC DPC image. + * -the MC is responsible for allocating and setting up 'isolation context + * IDs (ICIDs) based on the allocated stream IDs for all DPAA2 devices. + * + * On ls2080a SoCs stream IDs are programmed in AMQ registers (32-bits) for + * each of the different bus masters. The relationship between + * the AMQ registers and stream IDs is defined in the table below: + * AMQ bit streamID bit + * --------------------------- + * PL[18] 9 // privilege bit + * BMT[17] 8 // bypass translation + * VA[16] 7 // reserved + * [15] - // unused + * ICID[14:7] - // unused + * ICID[6:0] 6-0 // isolation context id + * ---------------------------- + * + */ + +#define AMQ_PL_MASK (0x1 << 18) /* priviledge bit */ +#define AMQ_BMT_MASK (0x1 << 17) /* bypass bit */ + +#define FSL_INVALID_STREAM_ID 0 + +#define FSL_BYPASS_AMQ (AMQ_PL_MASK | AMQ_BMT_MASK) + +/* legacy devices */ +#define FSL_USB1_STREAM_ID 1 +#define FSL_USB2_STREAM_ID 2 +#define FSL_SDMMC_STREAM_ID 3 +#define FSL_SATA1_STREAM_ID 4 +#define FSL_SATA2_STREAM_ID 5 +#define FSL_DMA_STREAM_ID 6 + +/* PCI - programmed in PEXn_LUT */ +#define FSL_PEX_STREAM_ID_START 7 +#define FSL_PEX_STREAM_ID_END 22 + +/* DPAA2 - set in MC DPC and alloced by MC */ +#define FSL_DPAA2_STREAM_ID_START 23 +#define FSL_DPAA2_STREAM_ID_END 63 + +#endif diff --git a/include/configs/ls2080a_common.h b/include/configs/ls2080a_common.h index 7aef43f..e120f6e 100644 --- a/include/configs/ls2080a_common.h +++ b/include/configs/ls2080a_common.h @@ -13,7 +13,7 @@ #define CONFIG_GICV3 #define CONFIG_FSL_TZPC_BP147 -#include +#include #include /* Link Definitions */