drm/exynos/hdmi: stop programming registers with default values
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 2 Nov 2015 13:16:43 +0000 (14:16 +0100)
committerInki Dae <daeinki@gmail.com>
Fri, 29 Apr 2016 16:03:53 +0000 (01:03 +0900)
There is no point in rewriting default values, as the IP is reset anyway.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 4687a80f8ac09cc0c3219fad2c712f904fa35943..8905f082ec657a81fd8e2387ffa0a951875c42ac 100644 (file)
@@ -1432,20 +1432,12 @@ static void hdmi_v13_mode_apply(struct hdmi_context *hdata)
                hdmi_reg_writev(hdata, HDMI_TG_VACT_ST_L, 2,
                                m->vtotal - m->vdisplay);
                hdmi_reg_writev(hdata, HDMI_TG_VACT_SZ_L, 2, m->vdisplay);
-               hdmi_reg_writev(hdata, HDMI_TG_VACT_ST2_L, 2, 0x248);
        }
 
        hdmi_reg_writev(hdata, HDMI_TG_H_FSZ_L, 2, m->htotal);
        hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay);
        hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay);
        hdmi_reg_writev(hdata, HDMI_TG_V_FSZ_L, 2, m->vtotal);
-       hdmi_reg_writev(hdata, HDMI_TG_VSYNC_L, 2, 0x1);
-       hdmi_reg_writev(hdata, HDMI_TG_VSYNC2_L, 2, 0x233);
-       hdmi_reg_writev(hdata, HDMI_TG_FIELD_CHG_L, 2, 0x233);
-       hdmi_reg_writev(hdata, HDMI_TG_VSYNC_TOP_HDMI_L, 2, 0x1);
-       hdmi_reg_writev(hdata, HDMI_TG_VSYNC_BOT_HDMI_L, 2, 0x233);
-       hdmi_reg_writev(hdata, HDMI_TG_FIELD_TOP_HDMI_L, 2, 0x1);
-       hdmi_reg_writev(hdata, HDMI_TG_FIELD_BOT_HDMI_L, 2, 0x233);
 }
 
 static void hdmi_v14_mode_apply(struct hdmi_context *hdata)
@@ -1518,12 +1510,6 @@ static void hdmi_v14_mode_apply(struct hdmi_context *hdata)
                hdmi_reg_writev(hdata, HDMI_TG_VACT_ST_L, 2,
                                m->vtotal - m->vdisplay);
                hdmi_reg_writev(hdata, HDMI_TG_VACT_SZ_L, 2, m->vdisplay);
-               hdmi_reg_writev(hdata, HDMI_TG_VACT_ST2_L, 2, 0x248);
-               hdmi_reg_writev(hdata, HDMI_TG_VACT_ST3_L, 2, 0x47b);
-               hdmi_reg_writev(hdata, HDMI_TG_VACT_ST4_L, 2, 0x6ae);
-               hdmi_reg_writev(hdata, HDMI_TG_VSYNC2_L, 2, 0x233);
-               hdmi_reg_writev(hdata, HDMI_TG_VSYNC_BOT_HDMI_L, 2, 0x233);
-               hdmi_reg_writev(hdata, HDMI_TG_FIELD_BOT_HDMI_L, 2, 0x233);
        }
 
        hdmi_reg_writev(hdata, HDMI_H_SYNC_START_0, 2,
@@ -1553,11 +1539,6 @@ static void hdmi_v14_mode_apply(struct hdmi_context *hdata)
        hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay);
        hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay);
        hdmi_reg_writev(hdata, HDMI_TG_V_FSZ_L, 2, m->vtotal);
-       hdmi_reg_writev(hdata, HDMI_TG_VSYNC_L, 2, 0x1);
-       hdmi_reg_writev(hdata, HDMI_TG_FIELD_CHG_L, 2, 0x233);
-       hdmi_reg_writev(hdata, HDMI_TG_VSYNC_TOP_HDMI_L, 2, 0x1);
-       hdmi_reg_writev(hdata, HDMI_TG_FIELD_TOP_HDMI_L, 2, 0x1);
-       hdmi_reg_writev(hdata, HDMI_TG_3D, 1, 0x0);
 }
 
 static void hdmi_mode_apply(struct hdmi_context *hdata)