Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/457911/?format=api
{ "id": 457911, "url": "http://patchwork.ozlabs.org/api/patches/457911/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-imx/patch/1428053759-3129-3-git-send-email-b52261@freescale.com/", "project": { "id": 19, "url": "http://patchwork.ozlabs.org/api/projects/19/?format=api", "name": "Linux IMX development", "link_name": "linux-imx", "list_id": "linux-imx-kernel.lists.patchwork.ozlabs.org", "list_email": "linux-imx-kernel@lists.patchwork.ozlabs.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1428053759-3129-3-git-send-email-b52261@freescale.com>", "list_archive_url": null, "date": "2015-04-03T09:35:57", "name": "[v4,2/4] arm/layerscape/ls1021a: DCU pixel clock control", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "973f5d8ad7b80cfa1df1f1564e0b45493767b3bb", "submitter": { "id": 65958, "url": "http://patchwork.ozlabs.org/api/people/65958/?format=api", "name": "Jianwei Wang", "email": "b52261@freescale.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-imx/patch/1428053759-3129-3-git-send-email-b52261@freescale.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/457911/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/457911/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming-imx@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming-imx@bilbo.ozlabs.org", "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n\t[IPv6:2001:1868:205::9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 93C5D140082\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 3 Apr 2015 21:04:12 +1100 (AEDT)", "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux))\n\tid 1YdyOn-00029n-9R; Fri, 03 Apr 2015 10:00:25 +0000", "from mail-bn1on0132.outbound.protection.outlook.com\n\t([157.56.110.132] helo=na01-bn1-obe.outbound.protection.outlook.com)\n\tby bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat\n\tLinux)) id 1Ydy53-00008Q-95\n\tfor linux-arm-kernel@lists.infradead.org;\n\tFri, 03 Apr 2015 09:40:02 +0000", "from CO2PR03CA0019.namprd03.prod.outlook.com (10.141.194.146) by\n\tDM2PR0301MB0880.namprd03.prod.outlook.com (25.160.216.142) with\n\tMicrosoft\n\tSMTP Server (TLS) id 15.1.118.21; Fri, 3 Apr 2015 09:39:35 +0000", "from BY2FFO11FD046.protection.gbl (2a01:111:f400:7c0c::102) by\n\tCO2PR03CA0019.outlook.office365.com (2a01:111:e400:1414::18) with\n\tMicrosoft SMTP Server (TLS) id 15.1.106.15 via Frontend Transport;\n\tFri, 3 Apr 2015 09:39:34 +0000", "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBY2FFO11FD046.mail.protection.outlook.com (10.1.15.170) with\n\tMicrosoft SMTP Server (TLS) id 15.1.136.16 via Frontend Transport;\n\tFri, 3 Apr 2015 09:39:33 +0000", "from titan.ap.freescale.net ([10.192.208.233])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tt339dJus003786; Fri, 3 Apr 2015 02:39:29 -0700" ], "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=freescale.com; cmss.chinamobile.com;\n\tdkim=none (message not signed) header.d=none;", "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;", "From": "Jianwei Wang <b52261@freescale.com>", "To": "<airlied@linux.ie>, <dri-devel@lists.freedesktop.org>,\n\t<daniel.vetter@ffwll.ch>, <stefan@agner.ch>, <scottwood@freescale.com>", "Subject": "[PATCH v4 2/4] arm/layerscape/ls1021a: DCU pixel clock control", "Date": "Fri, 3 Apr 2015 17:35:57 +0800", "Message-ID": "<1428053759-3129-3-git-send-email-b52261@freescale.com>", "X-Mailer": "git-send-email 2.1.0.27.g96db324", "In-Reply-To": "<1428053759-3129-1-git-send-email-b52261@freescale.com>", "References": "<1428053759-3129-1-git-send-email-b52261@freescale.com>", "X-EOPAttributedMessage": "0", "X-Forefront-Antispam-Report": "CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI;\n\tBMV:1; SFV:NSPM;\n\tSFS:(10019020)(6009001)(339900001)(189002)(199003)(19580405001)(33646002)(92566002)(6806004)(229853001)(85426001)(46102003)(36756003)(105606002)(106466001)(50226001)(50986999)(19580395003)(104016003)(76176999)(77156002)(77096005)(62966003)(2201001)(2950100001)(87936001)(47776003)(50466002)(48376002)(2101003)(42262002);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0880;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; ", "MIME-Version": "1.0", "X-Microsoft-Antispam": "UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0880;", "X-Microsoft-Antispam-PRVS": "<DM2PR0301MB0880B89E6FE343029A97BB3B9FF10@DM2PR0301MB0880.namprd03.prod.outlook.com>", "X-Exchange-Antispam-Report-Test": "UriScan:;", "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(601004)(5002010)(5005006); SRVR:DM2PR0301MB0880; BCL:0; PCL:0;\n\tRULEID:; SRVR:DM2PR0301MB0880; ", "X-Forefront-PRVS": "05352A48BE", "X-OriginatorOrg": "freescale.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "03 Apr 2015 09:39:33.1312\n\t(UTC)", "X-MS-Exchange-CrossTenant-Id": "710a03f5-10f6-4d38-9ff4-a80b81da590d", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;\n\tIp=[192.88.168.50]; \n\tHelo=[tx30smr01.am.freescale.net]", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM2PR0301MB0880", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20150403_024001_570048_6A861C3C ", "X-CRM114-Status": "UNSURE ( 8.57 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-0.0 (/)", "X-Spam-Report": "SpamAssassin version 3.4.0 on bombadil.infradead.org summary:\n\tContent analysis details: (-0.0 points)\n\tpts rule name description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno trust [157.56.110.132 listed in list.dnswl.org]\n\t-0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2)\n\t[157.56.110.132 listed in wl.mailspike.net]\n\t-0.0 SPF_PASS SPF: sender matches SPF record\n\t-0.0 SPF_HELO_PASS SPF: HELO matches SPF record", "Cc": "Xiubo Li <lixiubo@cmss.chinamobile.com>,\n\tAlison Wang <b18965@freescale.com>, \n\tlinux-kernel@vger.kernel.org, Jianwei Wang <b52261@freescale.com>,\n\tJason.Jin@freescale.com, linux-arm-kernel@lists.infradead.org", "X-BeenThere": "linux-arm-kernel@lists.infradead.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-arm-kernel/>", "List-Post": "<mailto:linux-arm-kernel@lists.infradead.org>", "List-Help": "<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>", "Errors-To": "linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org", "List-Id": "linux-imx-kernel.lists.patchwork.ozlabs.org" }, "content": "Enable DCU pixel clock when platform devices initinalizing and\nprovide enable and disable pixel clock functions for drm driver\n\nSigned-off-by: Alison Wang <b18965@freescale.com>\nSigned-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>\nSigned-off-by: Jianwei Wang <b52261@freescale.com>\n---\n arch/arm/mach-imx/mach-ls1021a.c | 36 ++++++++++++++++++++++++++++++++++++\n include/linux/fsl/dcu.h | 22 ++++++++++++++++++++++\n 2 files changed, 58 insertions(+)\n create mode 100644 include/linux/fsl/dcu.h", "diff": "diff --git a/arch/arm/mach-imx/mach-ls1021a.c b/arch/arm/mach-imx/mach-ls1021a.c\nindex b89c858..4fb346d 100644\n--- a/arch/arm/mach-imx/mach-ls1021a.c\n+++ b/arch/arm/mach-imx/mach-ls1021a.c\n@@ -8,9 +8,44 @@\n */\n \n #include <asm/mach/arch.h>\n+#include <linux/of_platform.h>\n+#include <linux/mfd/syscon.h>\n+#include <linux/regmap.h>\n+#include <linux/fsl/dcu.h>\n \n #include \"common.h\"\n \n+void dcu_pixclk_disable(void)\n+{\n+\tstruct regmap *scfg_regmap;\n+\n+\tscfg_regmap = syscon_regmap_lookup_by_compatible(\"fsl,ls1021a-scfg\");\n+\tif (IS_ERR(scfg_regmap)) {\n+\t\tpr_err(\"No syscfg phandle specified\\n\");\n+\t\treturn;\n+\t}\n+\n+\tregmap_write(scfg_regmap, SCFG_PIXCLKCR, PXCK_DISABLE);\n+}\n+\n+void dcu_pixclk_enable(void)\n+{\n+\tstruct regmap *scfg_regmap;\n+\n+\tscfg_regmap = syscon_regmap_lookup_by_compatible(\"fsl,ls1021a-scfg\");\n+\tif (IS_ERR(scfg_regmap)) {\n+\t\tpr_err(\"No syscfg phandle specified\\n\");\n+\t\treturn;\n+\t}\n+\n+\tregmap_write(scfg_regmap, SCFG_PIXCLKCR, PXCK_ENABLE);\n+}\n+\n+static void __init ls1021a_init_machine(void)\n+{\n+\tof_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);\n+\tdcu_pixclk_enable();\n+}\n static const char * const ls1021a_dt_compat[] __initconst = {\n \t\"fsl,ls1021a\",\n \tNULL,\n@@ -18,5 +53,6 @@ static const char * const ls1021a_dt_compat[] __initconst = {\n \n DT_MACHINE_START(LS1021A, \"Freescale LS1021A\")\n \t.smp\t\t= smp_ops(ls1021a_smp_ops),\n+\t.init_machine\t= ls1021a_init_machine,\n \t.dt_compat\t= ls1021a_dt_compat,\n MACHINE_END\ndiff --git a/include/linux/fsl/dcu.h b/include/linux/fsl/dcu.h\nnew file mode 100644\nindex 0000000..1873057\n--- /dev/null\n+++ b/include/linux/fsl/dcu.h\n@@ -0,0 +1,22 @@\n+/*\n+ * Copyright 2015 Freescale Semiconductor, Inc.\n+ *\n+ * Freescale DCU drm device driver\n+ *\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation; either version 2 of the License, or\n+ * (at your option) any later version.\n+ */\n+\n+#ifndef __FSL_DCU_H__\n+#define __FSL_DCU_H__\n+\n+#define SCFG_PIXCLKCR\t\t\t0x28\n+#define PXCK_ENABLE\t\t\tBIT(31)\n+#define PXCK_DISABLE\t\t\t0\n+\n+void dcu_pixclk_enable(void);\n+void dcu_pixclk_disable(void);\n+\n+#endif /* __FSL_DCU_H__ */\n", "prefixes": [ "v4", "2/4" ] }