Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/397522/?format=api
{ "id": 397522, "url": "http://patchwork.ozlabs.org/api/patches/397522/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1412740369-3834-1-git-send-email-Li.Xiubo@freescale.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1412740369-3834-1-git-send-email-Li.Xiubo@freescale.com>", "list_archive_url": null, "date": "2014-10-08T03:52:49", "name": "[U-Boot] ARM: LS1021A: Configure device stream id for smmu.", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "d0a72146ad91b1cca15a8be21d952b9ef2c9911b", "submitter": { "id": 44085, "url": "http://patchwork.ozlabs.org/api/people/44085/?format=api", "name": "Xiubo Li", "email": "Li.Xiubo@freescale.com" }, "delegate": { "id": 2666, "url": "http://patchwork.ozlabs.org/api/users/2666/?format=api", "username": "yorksun", "first_name": "York", "last_name": "Sun", "email": "yorksun@freescale.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1412740369-3834-1-git-send-email-Li.Xiubo@freescale.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/397522/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/397522/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "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])\n\tby ozlabs.org (Postfix) with ESMTP id 3FC771400D5\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 8 Oct 2014 14:53:59 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 16E07A73E8;\n\tWed, 8 Oct 2014 05:53:55 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 51ZbOeHmRhpW; Wed, 8 Oct 2014 05:53:54 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id EE6724B5D5;\n\tWed, 8 Oct 2014 05:53:53 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 9ED964B5D5\n\tfor <u-boot@lists.denx.de>; Wed, 8 Oct 2014 05:53:49 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id AWpheShZOk4S for <u-boot@lists.denx.de>;\n\tWed, 8 Oct 2014 05:53:49 +0200 (CEST)", "from na01-bn1-obe.outbound.protection.outlook.com\n\t(mail-bn1bon0136.outbound.protection.outlook.com [157.56.111.136])\n\tby theia.denx.de (Postfix) with ESMTPS id 24EE84B5D3\n\tfor <u-boot@lists.denx.de>; Wed, 8 Oct 2014 05:53:46 +0200 (CEST)", "from BN3PR0301CA0074.namprd03.prod.outlook.com (25.160.152.170) by\n\tBL2PR03MB145.namprd03.prod.outlook.com (10.255.230.13) with\n\tMicrosoft\n\tSMTP Server (TLS) id 15.0.1049.19; Wed, 8 Oct 2014 03:53:42 +0000", "from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::128) by\n\tBN3PR0301CA0074.outlook.office365.com (2a01:111:e400:401e::42) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1049.19 via Frontend Transport;\n\tWed, 8 Oct 2014 03:53:42 +0000", "from az84smr01.freescale.net (192.88.158.2) by\n\tBY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport;\n\tWed, 8 Oct 2014 03:53:42 +0000", "from titan.ap.freescale.net ([10.192.208.233])\n\tby az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id\n\ts983rc8l019380; Tue, 7 Oct 2014 20:53:39 -0700" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "From": "Xiubo Li <Li.Xiubo@freescale.com>", "To": "<R58495@freescale.com>", "Date": "Wed, 8 Oct 2014 11:52:49 +0800", "Message-ID": "<1412740369-3834-1-git-send-email-Li.Xiubo@freescale.com>", "X-Mailer": "git-send-email 2.1.0.27.g96db324", "X-EOPAttributedMessage": "0", "X-Forefront-Antispam-Report": "CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI;\n\tEFV:NLI; SFV:NSPM;\n\tSFS:(10019020)(6009001)(189002)(199003)(107046002)(62966002)(48376002)(88136002)(50466002)(87286001)(87936001)(50226001)(89996001)(21056001)(97736003)(2351001)(229853001)(4396001)(81156004)(105606002)(106466001)(95666004)(80022003)(46102003)(99396003)(102836001)(2371004)(31966008)(76482002)(36756003)(77156001)(120916001)(104016003)(92726001)(93916002)(26826002)(92566001)(50986999)(575784001)(86362001)(19580395003)(84676001)(68736004)(69596002)(64706001)(47776003)(6806004)(104166001)(20776003)(44976005)(85306004)(19580405001)(85852003)(110136001);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB145;\n\tH:az84smr01.freescale.net; FPR:; MLV:ovrnspm;\n\tPTR:InfoDomainNonexistent; MX:1; A:1; LANG:; ", "MIME-Version": "1.0", "X-Microsoft-Antispam": [ "UriScan:;", "BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB145;" ], "X-Forefront-PRVS": "0358535363", "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.158.2 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.158.2; helo=az84smr01.freescale.net;", "Authentication-Results": "spf=fail (sender IP is 192.88.158.2)\n\tsmtp.mailfrom=Li.Xiubo@freescale.com; ", "X-OriginatorOrg": "freescale.com", "Cc": "Xiubo Li <Li.Xiubo@freescale.com>, B44382@freescale.com,\n\tu-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH] ARM: LS1021A: Configure device stream id for smmu.", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.13", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>\n---\n .../include/asm/arch-ls102xa/ls102xa_stream_id.h | 17 +++++++++++++++++\n board/freescale/common/Makefile | 2 ++\n board/freescale/common/ls102xa_stream_id.c | 19 +++++++++++++++++++\n board/freescale/ls1021aqds/ls1021aqds.c | 22 ++++++++++++++++++++++\n board/freescale/ls1021atwr/ls1021atwr.c | 22 ++++++++++++++++++++++\n include/configs/ls1021aqds.h | 2 ++\n include/configs/ls1021atwr.h | 2 ++\n 7 files changed, 86 insertions(+)\n create mode 100644 arch/arm/include/asm/arch-ls102xa/ls102xa_stream_id.h\n create mode 100644 board/freescale/common/ls102xa_stream_id.c", "diff": "diff --git a/arch/arm/include/asm/arch-ls102xa/ls102xa_stream_id.h b/arch/arm/include/asm/arch-ls102xa/ls102xa_stream_id.h\nnew file mode 100644\nindex 0000000..abd70fc\n--- /dev/null\n+++ b/arch/arm/include/asm/arch-ls102xa/ls102xa_stream_id.h\n@@ -0,0 +1,17 @@\n+/*\n+ * Copyright 2014 Freescale Semiconductor, Inc.\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#ifndef __FSL_LS102XA_STREAM_ID_H_\n+#define __FSL_LS102XA_STREAM_ID_H_\n+\n+struct smmu_stream_id {\n+\tuint16_t offset;\n+\tuint16_t stream_id;\n+\tchar dev_name[32];\n+};\n+\n+void ls102xa_config_smmu_stream_id(struct smmu_stream_id *id, uint32_t num);\n+#endif\ndiff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile\nindex 7296bbb..726f52c 100644\n--- a/board/freescale/common/Makefile\n+++ b/board/freescale/common/Makefile\n@@ -54,6 +54,8 @@ obj-$(CONFIG_VSC_CROSSBAR) += vsc3316_3308.o\n obj-$(CONFIG_IDT8T49N222A)\t+= idt8t49n222a_serdes_clk.o\n obj-$(CONFIG_ZM7300)\t\t+= zm7300.o\n \n+obj-$(CONFIG_LS102XA_STREAM_ID)\t+= ls102xa_stream_id.o\n+\n # deal with common files for P-series corenet based devices\n obj-$(CONFIG_P2041RDB)\t+= p_corenet/\n obj-$(CONFIG_P3041DS)\t+= p_corenet/\ndiff --git a/board/freescale/common/ls102xa_stream_id.c b/board/freescale/common/ls102xa_stream_id.c\nnew file mode 100644\nindex 0000000..dd0c710\n--- /dev/null\n+++ b/board/freescale/common/ls102xa_stream_id.c\n@@ -0,0 +1,19 @@\n+/*\n+ * Copyright 2014 Freescale Semiconductor\n+ *\n+ * SPDX-License-Identifier:\tGPL-2.0+\n+ */\n+\n+#include <common.h>\n+#include <asm/io.h>\n+#include <asm/arch/ls102xa_stream_id.h>\n+\n+void ls102xa_config_smmu_stream_id(struct smmu_stream_id *id, uint32_t num)\n+{\n+\tuint32_t *scfg = (uint32_t *)CONFIG_SYS_FSL_SCFG_ADDR;\n+\tint i;\n+\n+\tfor (i = 0; i < num; i++) {\n+\t\tout_be32(scfg + id[i].offset, id[i].stream_id);\n+\t}\n+}\ndiff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c\nindex 07df7d2..2021411 100644\n--- a/board/freescale/ls1021aqds/ls1021aqds.c\n+++ b/board/freescale/ls1021aqds/ls1021aqds.c\n@@ -11,6 +11,7 @@\n #include <asm/arch/ns_access.h>\n #include <asm/arch/clock.h>\n #include <asm/arch/fsl_serdes.h>\n+#include <asm/arch/ls102xa_stream_id.h>\n #include <mmc.h>\n #include <fsl_esdhc.h>\n #include <fsl_ifc.h>\n@@ -300,6 +301,24 @@ static struct csu_ns_dev ns_dev[] = {\n };\n #endif\n \n+struct smmu_stream_id dev_stream_id[] =\n+{\n+\t{ 0x100, 0x01, \"ETSEC MAC1\" },\n+\t{ 0x104, 0x02, \"ETSEC MAC2\" },\n+\t{ 0x108, 0x03, \"ETSEC MAC3\" },\n+\t{ 0x10c, 0x04, \"PEX1\" },\n+\t{ 0x110, 0x05, \"PEX2\" },\n+\t{ 0x114, 0x06, \"qDMA\" },\n+\t{ 0x118, 0x07, \"SATA\" },\n+\t{ 0x11c, 0x08, \"USB3\" },\n+\t{ 0x120, 0x09, \"QE\" },\n+\t{ 0x124, 0x0a, \"eSDHC\" },\n+\t{ 0x128, 0x0b, \"eMA\" },\n+\t{ 0x14c, 0x0c, \"2D-ACE\" },\n+\t{ 0x150, 0x0d, \"USB2\" },\n+\t{ 0x18c, 0x0e, \"DEBUG\" },\n+};\n+\n int board_init(void)\n {\n \tstruct ccsr_cci400 *cci = (struct ccsr_cci400 *)CONFIG_SYS_CCI400_ADDR;\n@@ -315,6 +334,9 @@ int board_init(void)\n \tconfig_serdes_mux();\n #endif\n \n+\tls102xa_config_smmu_stream_id(dev_stream_id,\n+\t\t\tARRAY_SIZE(dev_stream_id));\n+\n #ifdef CONFIG_SYS_FSL_CSU_ADDR\n \tenable_devices_ns_access(ns_dev, ARRAY_SIZE(ns_dev));\n #endif\ndiff --git a/board/freescale/ls1021atwr/ls1021atwr.c b/board/freescale/ls1021atwr/ls1021atwr.c\nindex c4d3600..3281277 100644\n--- a/board/freescale/ls1021atwr/ls1021atwr.c\n+++ b/board/freescale/ls1021atwr/ls1021atwr.c\n@@ -11,6 +11,7 @@\n #include <asm/arch/ns_access.h>\n #include <asm/arch/clock.h>\n #include <asm/arch/fsl_serdes.h>\n+#include <asm/arch/ls102xa_stream_id.h>\n #include <mmc.h>\n #include <fsl_esdhc.h>\n #include <fsl_ifc.h>\n@@ -357,6 +358,24 @@ static struct csu_ns_dev ns_dev[] = {\n };\n #endif\n \n+struct smmu_stream_id dev_stream_id[] =\n+{\n+\t{ 0x100, 0x01, \"ETSEC MAC1\" },\n+\t{ 0x104, 0x02, \"ETSEC MAC2\" },\n+\t{ 0x108, 0x03, \"ETSEC MAC3\" },\n+\t{ 0x10c, 0x04, \"PEX1\" },\n+\t{ 0x110, 0x05, \"PEX2\" },\n+\t{ 0x114, 0x06, \"qDMA\" },\n+\t{ 0x118, 0x07, \"SATA\" },\n+\t{ 0x11c, 0x08, \"USB3\" },\n+\t{ 0x120, 0x09, \"QE\" },\n+\t{ 0x124, 0x0a, \"eSDHC\" },\n+\t{ 0x128, 0x0b, \"eMA\" },\n+\t{ 0x14c, 0x0c, \"2D-ACE\" },\n+\t{ 0x150, 0x0d, \"USB2\" },\n+\t{ 0x18c, 0x0e, \"DEBUG\" },\n+};\n+\n int board_init(void)\n {\n #ifndef CONFIG_SYS_FSL_NO_SERDES\n@@ -364,6 +383,9 @@ int board_init(void)\n \tconfig_serdes_mux();\n #endif\n \n+\tls102xa_config_smmu_stream_id(dev_stream_id,\n+\t\t\tARRAY_SIZE(dev_stream_id));\n+\n #ifdef CONFIG_SYS_FSL_CSU_ADDR\n \tenable_devices_ns_access(ns_dev, ARRAY_SIZE(ns_dev));\n #endif\ndiff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h\nindex 0203dd9..9a7ef64 100644\n--- a/include/configs/ls1021aqds.h\n+++ b/include/configs/ls1021aqds.h\n@@ -367,6 +367,8 @@ unsigned long get_board_ddr_clk(void);\n #define CONFIG_SYS_LOAD_ADDR\t\t0x82000000\n #define CONFIG_SYS_HZ\t\t\t1000\n \n+#define CONFIG_LS102XA_STREAM_ID\n+\n /*\n * Stack sizes\n * The stack sizes are set up in start.S using the settings below\ndiff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h\nindex 3d3f109..f81b236 100644\n--- a/include/configs/ls1021atwr.h\n+++ b/include/configs/ls1021atwr.h\n@@ -269,6 +269,8 @@\n #define CONFIG_SYS_LOAD_ADDR\t\t0x82000000\n #define CONFIG_SYS_HZ\t\t\t1000\n \n+#define CONFIG_LS102XA_STREAM_ID\n+\n /*\n * Stack sizes\n * The stack sizes are set up in start.S using the settings below\n", "prefixes": [ "U-Boot" ] }