From patchwork Thu Sep 13 18:39:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 1452061 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2B838402E1 for ; Thu, 13 Sep 2012 13:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752398Ab2IMNYa (ORCPT ); Thu, 13 Sep 2012 09:24:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:55633 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752593Ab2IMNYZ (ORCPT ); Thu, 13 Sep 2012 09:24:25 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MAA00I09IKIBE11@mailout2.samsung.com>; Thu, 13 Sep 2012 22:24:24 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 12.87.25965.78ED1505; Thu, 13 Sep 2012 22:24:24 +0900 (KST) X-AuditID: cbfee61a-b7fb46d00000656d-c6-5051de875915 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 21.87.25965.78ED1505; Thu, 13 Sep 2012 22:24:23 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MAA00D1TIJNQI20@mmp1.samsung.com>; Thu, 13 Sep 2012 22:24:23 +0900 (KST) From: Ajay Kumar To: linux-samsung-soc@vger.kernel.org, linux-fbdev@vger.kernel.org, jg1.han@samsung.com, thomas.ab@samsung.com Cc: FlorianSchandinat@gmx.de Subject: [PATCH] video: exynos_dp: Add device tree support to DP driver Date: Fri, 14 Sep 2012 00:09:52 +0530 Message-id: <1347561592-29400-1-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWyRsSkSLfjXmCAwbtfzBYn+j6wWsw4v4/J gcnj8ya5AMYoLpuU1JzMstQifbsEroyGK5dZCtaaVzxYv5S5gfGBbhcjB4eEgInEwg+pXYyc QKaYxIV769m6GLk4hASWMkp8+7CNCabmw3ZWiPgiRokdpz5CFbUzSTxbfZ0NpJtNQFti2/Sb LCC2iECBxKSGVmYQm1lARuLN/AVMILawgLvEqcXP2EFsFgFViR1PG8DqeQU8JF4tWM8IcYWC ROuyQ1A1AhLfJh9igThCVmLTAWaQvRICB9gkVr2ZxwZRLylxcMUNlgmMggsYGVYxiqYWJBcU J6XnGuoVJ+YWl+al6yXn525iBIbW6X/PpHYwrmywOMQowMGoxMOb+TwgQIg1say4MvcQowQH s5IIr3p3YIAQb0piZVVqUX58UWlOavEhRh+gSyYyS4km5wPDPq8k3tDY2MTMxNTCzMjMyASH sJI4r9d5oFkC6YklqdmpqQWpRTDjmDg4pRoYY9vYL9jMniHuM2tjHlvRmu2z2fKWeWXfer45 ZGF74jn394cVve6eiJ22ss7dbXXymY5ZmbP6ym2XbLyknfPP2+uTTpLZ/n1i3o/PdstMcVrO rNAd8T7UsFLXTkpvin/4kwtdXM8ifkUWHlFltZvX/W2Bo1qn9TZH7sM/ko9HFnf4rBG3l3JR YinOSDTUYi4qTgQAeFoUNFoCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsVy+t9jAd32e4EBBj/e61qc6PvAajHj/D4m ByaPz5vkAhijGhhtMlITU1KLFFLzkvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwC dN0yc4BGKymUJeaUAoUCEouLlfTtME0IDXHTtYBpjND1DQmC6zEyQAMJaxgzGq5cZilYa17x YP1S5gbGB7pdjBwcEgImEh+2s3YxcgKZYhIX7q1n62Lk4hASWMQosePURyinnUni2errbCBV bALaEtum32QBsUUECiQmNbQyg9jMAjISb+YvYAKxhQXcJU4tfsYOYrMIqErseNoAVs8r4CHx asF6RohtChKtyw6xT2DkXsDIsIpRNLUguaA4KT3XUK84Mbe4NC9dLzk/dxMjOHSfSe1gXNlg cYhRgINRiYc383lAgBBrYllxZe4hRgkOZiURXvXuwAAh3pTEyqrUovz4otKc1OJDjD5A2ycy S4km5wPjKq8k3tDYxMzI0sjc0MLI2ByHsJI4r9d5oFkC6YklqdmpqQWpRTDjmDg4pRoYV8vW ZKcnHpmpsXbmF9lpNdMOmbBdkmU+4vX3yfd23hof6Q/KMzQvdCv3+HHzufyUP/eivmr1GkZj K4tFubP8DqyKUVcMiDk+N77xCSvjdocI5pVTvnkdC48OOpMf4PjrkdPaNKsFknq/a0r8nKZE /mRI2xAVkWjHf0FIzKrFjUktwUF1roASS3FGoqEWc1FxIgAElIOLigIAAA== X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org This patch enables device tree based discovery support for DP driver. The driver is modified to handle platform data in both the cases: with DT and non-DT. DP-PHY should be regarded as a seperate device node while being passed from device tree list, and device node for DP should contain DP-PHY as child node with property name "dp-phy" associated with it. Signed-off-by: Ajay Kumar --- drivers/video/exynos/exynos_dp_core.c | 156 +++++++++++++++++++++++++++++++-- drivers/video/exynos/exynos_dp_core.h | 2 + 2 files changed, 151 insertions(+), 7 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index f57c915..15887bd 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -18,6 +18,7 @@ #include #include #include +#include #include