From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jingoo Han Date: Mon, 15 Oct 2012 09:12:06 +0000 Subject: [PATCH V6 1/2] video: exynos_dp: Add device tree support to DP driver Message-Id: <009e01cdaab5$25cff2c0$716fd840$%han@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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' 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