From patchwork Mon Oct 15 09:12:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1592931 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 9D60D3FD86 for ; Mon, 15 Oct 2012 09:12:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274Ab2JOJMJ (ORCPT ); Mon, 15 Oct 2012 05:12:09 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:43378 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722Ab2JOJMI (ORCPT ); Mon, 15 Oct 2012 05:12:08 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBX00ILKG7VNC00@mailout3.samsung.com>; Mon, 15 Oct 2012 18:12:06 +0900 (KST) X-AuditID: cbfee61a-b7f976d000001eb9-22-507bd366c10d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CD.C4.07865.663DB705; Mon, 15 Oct 2012 18:12:06 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBX00MFIG86PF81@mmp2.samsung.com>; Mon, 15 Oct 2012 18:12:06 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, 'Ajay Kumar' , 'Sylwester Nawrocki' , 'Tomasz Figa' , 'Thomas Abraham' , 'Jingoo Han' Subject: [PATCH V6 1/2] video: exynos_dp: Add device tree support to DP driver Date: Mon, 15 Oct 2012 18:12:06 +0900 Message-id: <009e01cdaab5$25cff2c0$716fd840$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac2qtSW5uQILdkrJQxuxLuwR/TeLgw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJLMWRmVeSWpSXmKPExsVy+t9jQd20y9UBBhM7tSxO9H1gtZhxfh+T A5PH501yAYxRXDYpqTmZZalF+nYJXBnbz+oWrHWtaD1/mLWBcb5lFyMnh4SAicSS/VuZIGwx iQv31rN1MXJxCAlMZ5Ro7PvOCOH8YpRY/HcNG0gVm4CaxJcvh9m7GDk4RASsJDZt1QSpYRY4 yiQx58cBZpAaYQE/iev/P7KD2CwCqhJXlp9mBLF5BWwlXk5sY4OwBSV+TL7HAmIzC2hJrN95 nAnClpfYvOYtM8h8CQF1iUd/dUHCIgJ6Epvn3GCGKBGR2PfiHeMERoFZSCbNQjJpFpJJs5C0 LGBkWcUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kRHKDPpHYwrmywOMQowMGoxMP706s6QIg1 say4MvcQowQHs5II7+4TQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8zR4pAUIC6YklqdmpqQWp RTBZJg5OqQbG7oUmZ1mvPN+mJLy/zk7W5Vy/bem1SeF+0fmaVVe3n5e3/L8ywyWUq//mg4fc UW/+dnz1DbG5tEnZ+027zMa7u80/arc32q9l+nmfJ2HWE61N/E9b5Fp37swq21+ZyLD537ru J3827LW/dlbE6fXCQ5/u6m4wML2swb7LZsq09+1/7a8pVISxKLEUZyQaajEXFScCAI+znYBM AgAA Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Ajay Kumar 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. Signed-off-by: Ajay Kumar Signed-off-by: Jingoo Han --- This patch is tested with Exynos5250. Changes since v6: - Check return values of required properties - Replace dp_phy_addr with phy_addr - Remove unnecessary NULL deference checking for 'pdata' - Remove unncessary 'virt_phy_base' variable - Make functions static - Fix build errors when CONFIG_OF option is diabled - Add return values to exynos_dp_dt_parse_phydata() drivers/video/exynos/exynos_dp_core.c | 206 ++++++++++++++++++++++++++++++--- drivers/video/exynos/exynos_dp_core.h | 2 + 2 files changed, 194 insertions(+), 14 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index d55470e..0d9c0ee 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