]> git.sur5r.net Git - u-boot/commitdiff
video: exynos fb driver supports display port feature
authorDonghwa Lee <dh09.lee@samsung.com>
Mon, 2 Jul 2012 01:16:08 +0000 (01:16 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:24 +0000 (14:58 +0200)
If dp_enabled was set, exynos fb driver support display port feature.
This patch depends on [PATCH] video: support exynos fimd driver
for various exynos series.

http://marc.info/?l=u-boot&m=134119605104467&w=2

Signed-off-by: Donghwa Lee <dh09.lee@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/include/asm/arch-exynos/fb.h
drivers/video/exynos_fb.c
drivers/video/exynos_fimd.c

index c96683abdf29d0119e449cd80fe0f071c16e4b9e..01445afde90679a2af0f75ca2a63d34cbfb87606 100644 (file)
@@ -151,6 +151,8 @@ struct exynos_fb {
 
        unsigned char res15[156];
        unsigned int dualrgb;
+       unsigned char res16[16];
+       unsigned int dp_mie_clkcon;
 };
 #endif
 
index 49fdfec763b43a889fdce217a29347687375f09a..e31a0fd500abef1bc46c9e0518e7bc2e8639db3d 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/clk.h>
 #include <asm/arch/mipi_dsim.h>
+#include <asm/arch/dp_info.h>
 #include <asm/arch/system.h>
 
 #include "exynos_fb.h"
@@ -91,6 +92,9 @@ static void lcd_panel_on(vidinfo_t *vid)
 
        udelay(vid->power_on_delay);
 
+       if (vid->dp_enabled)
+               exynos_init_dp();
+
        if (vid->reset_lcd) {
                vid->reset_lcd();
                udelay(vid->reset_delay);
@@ -130,7 +134,6 @@ void lcd_enable(void)
        if (panel_info.logo_on) {
                memset(lcd_base, 0, panel_width * panel_height *
                                (NBITS(panel_info.vl_bpix) >> 3));
-
                draw_logo();
        }
 
index 9aaa2c78d155d50619f777915ed579e729c37b26..06eae2ed78825d3e7168c6da57b1a87ed39fb6e5 100644 (file)
@@ -57,6 +57,19 @@ static void exynos_fimd_set_dualrgb(unsigned int enabled)
        writel(cfg, &fimd_ctrl->dualrgb);
 }
 
+static void exynos_fimd_set_dp_clkcon(unsigned int enabled)
+{
+
+       struct exynos_fb *fimd_ctrl =
+               (struct exynos_fb *)samsung_get_base_fimd();
+       unsigned int cfg = 0;
+
+       if (enabled)
+               cfg = EXYNOS_DP_CLK_ENABLE;
+
+       writel(cfg, &fimd_ctrl->dp_mie_clkcon);
+}
+
 static void exynos_fimd_set_par(unsigned int win_id)
 {
        unsigned int cfg = 0;
@@ -356,6 +369,8 @@ void exynos_fimd_lcd_init(vidinfo_t *vid)
 
        /* window on */
        exynos_fimd_window_on(pvid->win_id);
+
+       exynos_fimd_set_dp_clkcon(pvid->dp_enabled);
 }
 
 unsigned long exynos_fimd_calc_fbsize(void)