From patchwork Sun May 15 08:34:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Yi X-Patchwork-Id: 9096581 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7D47DBF29F for ; Sun, 15 May 2016 15:37:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53D5F202B8 for ; Sun, 15 May 2016 15:37:48 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2E8D720279 for ; Sun, 15 May 2016 15:37:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C8F86E0CD; Sun, 15 May 2016 15:37:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1041 seconds by postgrey-1.35 at gabe; Sun, 15 May 2016 09:17:50 UTC Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0082.outbound.protection.outlook.com [65.55.169.82]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9CF216E0F5 for ; Sun, 15 May 2016 09:17:50 +0000 (UTC) Received: from BY2PR03CA002.namprd03.prod.outlook.com (10.255.93.19) by CY1PR0301MB0601.namprd03.prod.outlook.com (10.160.142.20) with Microsoft SMTP Server (TLS) id 15.1.485.9; Sun, 15 May 2016 08:44:43 +0000 Received: from BL2FFO11FD049.protection.gbl (10.255.93.4) by BY2PR03CA002.outlook.office365.com (10.255.93.19) with Microsoft SMTP Server (TLS) id 15.1.497.12 via Frontend Transport; Sun, 15 May 2016 08:44:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD049.mail.protection.outlook.com (10.173.161.211) with Microsoft SMTP Server (TLS) id 15.1.492.8 via Frontend Transport; Sun, 15 May 2016 08:44:42 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u4F8iae9031670; Sun, 15 May 2016 01:44:36 -0700 From: Meng Yi To: , , , Subject: [PATCH 1/2] drm/fsl-dcu: Add HDMI driver for freescale DCU Date: Sun, 15 May 2016 16:34:44 +0800 Message-ID: <1463301285-48584-1-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131077754832662394; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(6806005)(5008740100001)(81166006)(104016004)(86362001)(2201001)(50466002)(87936001)(48376002)(8676002)(229853001)(105606002)(5890100001)(106466001)(189998001)(19580395003)(19580405001)(77096005)(92566002)(15975445007)(33646002)(5001770100001)(2906002)(50986999)(85426001)(4326007)(47776003)(11100500001)(5003940100001)(586003)(8936002)(36756003)(1220700001)(50226002)(7059030)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0601; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD049; 1:pJjVcw5cKnYpsHM+llJdsVIfivIZ5vw+h6K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RXTKHDYajR6gLENl12cDYglXFIfpTdF5vBtVQVt8SPcw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0601; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0601; 25:BWBTEiJXGjPJk1QTv9QYUaJBVkDsWwNRwrFNtrrgwjRFwaUhebUhUOdfCcz5Bd7qbek9FDW3kdfBEJn5/QSslqmO/fdSR56dRUGyZm3Q/BjUnoOSl+9B2Wf1Xbv7hkHTC/WvDispY2HNmaqirWf0peFc4GYXSGnJlusss/Lo2xqRGzjVe7MwJR56bdInTPuLSIPb9QX6OMdjNp3wUk1w55wZl5tPc3KVfSqmJeRQnDWGA0x5EWCoRjbJvqlx96xQxzhTPulww4FoSrsOBP/oXIG/KA1wDIS4XQ6nvCQQioRbc9JlXvzBGGaBXAlS1nWmuiQN+AEm8pygKT/7Kx2GlL4Uvw1A1beMi+mwiqNJ03sZLmBSCR/HqWhzjakJgGt6tQWYrRRWo0QiuG29HqF8stc/aDzfQiHiWYYtYLcAR2S7nH/JK0AmjDHlv8d7K1vEw0Ntsif4ViiJTSxtbL9YGvMDUyisMPH4vlXZssI2Wiqe2QNZZPeU9xiN8c/JbdInjGWMvFxOhTWml6ciqvDxNB+WfeID8P7hvZJdWC7Hw/hvJCAJk2rCFSROydcLEQIhBF+3msozGDTCvJYsoxzjlAghiAd6tmCAABkfJerGcyuYBnobiA7q5HnZHVs3txwtGzbRKuszWP34FfPkpI6xfuvdVLRmK0SxzH53EN04ArshOIr4bCLbq/F2P3O51IYPYXEuStjiUwTFlmmVVrYHtwTDjdXff+oRqJ3v3+XfL757gWApS6BjVeUG9SVauoitUyF+jjNPb5+TOiUgQq84ToY4zp8oyNaEahe3TNXG9oXoV3GjyM2tcbliYRIKQBAUmmFKE1MZH4IY/Av5QwGmqCs5khSZvDGHB8vQngDBcgk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13018025)(13015025)(13023025)(13024025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0601; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0601; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0601; 4:D1xWwUxFOTqa1TIuOUoH3Y9VujgxM4G/SqbfMvB++6PNY2nNJG74xKSTzr/hczcq0Rk/GomwshoXNK7OIMo8FBD3eUARyuR5dcpT9XMZVxkCHt1I1eqRxBU4DE8/n4DNIoA2Iy0UtJO1ISqDPnSnqbXyv+OXrICNoF6MJnMcwYLIWXuqk+02+QyjV6dgBJ1y05s7OpNMSXs6PYaAeKt8NvMeDu/Uk6kGZTgmlRs8gf8ZE+8hLCZwJQ/JnanXPRrCFuwTpzOqLX9cOPZM2IWzceqb4FCRbXzBFT9PpU9N7vOKr97CPkmAdRwTpSvSn62uIciW+2fnUmJJZqmmBE1kjWhAUNMk53fnIMipteRHl+DXtevbg1Hmi8cyoPJBCeHjjbJBZM+nz/qvaoFqJH2HsTZHAQ02xPR+gpOhopaKbms3y9b5WV/uo2eL3PnWTO1OZbtckYoMegBE0Cav1YbWo3scfbvUtDihlulEVvTAzjg= X-Forefront-PRVS: 09435FCA72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0601; 23:6iMvQ4bbkWiyRZl6sxoZu36ym2JItjKcM8QrlyN?= =?us-ascii?Q?ziGQhI5mW9aVka7p6McdxMnySubCdf6mFJzOYbR/T//Op4Ls7z9H0+8fSb2c?= =?us-ascii?Q?AhlAkra5PGiUWw8HjqM4b7Hlg5Z4GJ9+f6a0EnVYLuvQoKtUwaW7YD2VUSeP?= =?us-ascii?Q?t7G/27s7uo/5ZOfZr9AaXzBpZFEdLsHrG0YmegtuFNAsZlruSh3o1lgU2UM0?= =?us-ascii?Q?vjXqjN0aSKS0veWacjTbl9En8bB78FcKpgU/a1ZgHCzh+uX5nueWmtSpJDUc?= =?us-ascii?Q?YgA9tAc7yRhXtL2r4Pto0eClxuVL/HED1/kpY8QCazEaj+tMruNohQy0L9cV?= =?us-ascii?Q?dyb64Qy9XpJ6gwHpKOxSmQFrWp8yxTeMBEBWo+Mue/Rn1DlWCrJ3QN4bNRrk?= =?us-ascii?Q?OMBgIXFwrgo/A5aToUI9Gl81B13drnvL/qwJRfcCa4aBPsmRGFKZb51udw38?= =?us-ascii?Q?C5AVkPE5mz7b7FZMEUNHDsZQm6IPnilfveBFYgknV2pfEAumLAaJR/S4/cQW?= =?us-ascii?Q?R17OwwJZy16ALwZp0yohD9wR/ANYOuq1YvfOzLuhzRbff13zpSpoIISjireQ?= =?us-ascii?Q?2+s/moe0x5c5M57EnydCRjI3o+XmGiBu4kfe/1H1rDqtERZwOlckI14OOHeh?= =?us-ascii?Q?gY/t614DqW2uP+qZuodcLLDr03/rv63G23A+67WCzXQf4HuI2Ic+bEs2hwAF?= =?us-ascii?Q?Xdes6q184ujgMAcM+H9mUNeeHoRuX9FgvbwLcHUcz3AdCKaedjg+YWovoQVJ?= =?us-ascii?Q?5hQ906KaRKKttvkWeC8t5dV4JxuT3zTIaBWERvM2eJxGHBAdTqEUW6iABzu+?= =?us-ascii?Q?oeC5mso5CGGEfsGUDBvpjfikh5xg62n7L1KU6KFYNTIW1QNrlDwazXE5NkkX?= =?us-ascii?Q?eicNqIs2+vkXnUZhw22NoEVep6THcaMjUpDa2wRBc2lJamseFdkzyw3DpZ42?= =?us-ascii?Q?ssm77oPuceeu2pJN2dH1V8i3Ojk1OLbtSrq+5X684Kz8jB+wwc0LtlO5xMpu?= =?us-ascii?Q?cafbbsJi/ELna8mfVshpRliTFxaeFFzDgwnmbvOEKh8rYaZYQMgr53yYSTep?= =?us-ascii?Q?aBaw15gcBixHYSdq1TcXCE3wyUin+5HGvHoXXOv8g0hlPm5eVCvBr+uK3zN4?= =?us-ascii?Q?TGuzA0/2i5QWPYJ2CdnPYGMTLh8VcMHbE?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0601; 5:mlcCU/DFzBgV4D/PpXQepZDDCa5TGmZucLT0BqNWNhoCOezhqPkMsOirAwXAX5j7xwH4PYjZOkE204CF533UdE4AfOX8RWgU7rBwwpf/PkneeBcfqEKtEh8vphCrfrMJqJ7ESHmIPJ/Tq1F+sv0llFZxHo25+xyQUMzXl7GnrK4=; 24:54XDdZDOUhW3j0p9gZFXVwpuiQ2u1QPK3poK3klvFLObf5HCBgx7usBMOkVQEg+CMcc2hIQzM3pdfm0GvQIJV5u2aAaVOSSb4bLUBRJqXss=; 7:6MPR/zSvgC23Sy2o5RFvr5xU2ExUdZiwM+ZS1ymRxFmlO85HfIJoTBNUO+gbq+DFPKZ6P4vZaq/LZ2VEEhy0Eb7IVgmPRy0iqawJ9221qY+QFqG+QtEL5q4rei9jKVJAZ6OXRiO46uRI2QABpwIe9q+hq3q/XKfTt7r3AFVhFNwGCf02rboENUBD+92h9Fiw SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2016 08:44:42.9074 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0601 X-Mailman-Approved-At: Sun, 15 May 2016 15:37:37 +0000 Cc: Jianwei Wang , Meng Yi , Xiubo Li , Alison Wang , emil.l.velikov@gmail.com, maxime.ripard@free-electrons.com, alexander.stein@systec-electronic.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-5.6 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This driver add the basic functions for Encoder, and link the Encoder to appropriate DRM bridge. This driver is depend on sii9022 driver(drm_bridge approach),which is sent by Boris Brezillon to community but not merged. https://patchwork.kernel.org/patch/8600921/ Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang Signed-off-by: Meng Yi --- drivers/gpu/drm/fsl-dcu/Makefile | 1 + drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_hdmi.c | 194 +++++++++++++++++++++++++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c | 29 ++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_output.h | 4 + 4 files changed, 228 insertions(+) create mode 100644 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_hdmi.c diff --git a/drivers/gpu/drm/fsl-dcu/Makefile b/drivers/gpu/drm/fsl-dcu/Makefile index b35a292..12e2245 100644 --- a/drivers/gpu/drm/fsl-dcu/Makefile +++ b/drivers/gpu/drm/fsl-dcu/Makefile @@ -1,6 +1,7 @@ fsl-dcu-drm-y := fsl_dcu_drm_drv.o \ fsl_dcu_drm_kms.o \ fsl_dcu_drm_rgb.o \ + fsl_dcu_drm_hdmi.o \ fsl_dcu_drm_plane.o \ fsl_dcu_drm_crtc.o \ fsl_dcu_drm_fbdev.o \ diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_hdmi.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_hdmi.c new file mode 100644 index 0000000..76441c7 --- /dev/null +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_hdmi.c @@ -0,0 +1,194 @@ +/* + * Copyright 2015 Freescale Semiconductor, Inc. + * + * Freescale DCU drm device driver + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include