video: exynos_dp: move setting analog parameter and interrupt to after sw reset
authorJingoo Han <jg1.han@samsung.com>
Thu, 23 Aug 2012 10:55:13 +0000 (19:55 +0900)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 23 Aug 2012 13:23:36 +0000 (13:23 +0000)
SW reset sets DP TX to initial value, so configurations for analog parameter
and interrupt are not set properly. Therefore, exynos_dp_init_analog_param()
and exynos_dp_init_interrupt() should be moved to after sw reset is called,
in order to set these values properly.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/exynos/exynos_dp_core.c
drivers/video/exynos/exynos_dp_reg.c

index fe9ee1a15aacb6cb093162f05d705cc5b46de652..f57c9151a17b61cc93c5141067b48a91b80a89fd 100644 (file)
@@ -29,6 +29,9 @@ static int exynos_dp_init_dp(struct exynos_dp_device *dp)
 
        exynos_dp_swreset(dp);
 
+       exynos_dp_init_analog_param(dp);
+       exynos_dp_init_interrupt(dp);
+
        /* SW defined function Normal operation */
        exynos_dp_enable_sw_function(dp);
 
index d909b834b05ec2b8c96c239355ca96c7a4a56c72..20e441f66149b3785ef69bfcffc019cb0e125757 100644 (file)
@@ -148,9 +148,6 @@ void exynos_dp_reset(struct exynos_dp_device *dp)
        writel(0x2, dp->reg_base + EXYNOS_DP_M_AUD_GEN_FILTER_TH);
 
        writel(0x00000101, dp->reg_base + EXYNOS_DP_SOC_GENERAL_CTL);
-
-       exynos_dp_init_analog_param(dp);
-       exynos_dp_init_interrupt(dp);
 }
 
 void exynos_dp_swreset(struct exynos_dp_device *dp)