]> git.karo-electronics.de Git - linux-beck.git/commitdiff
video: exynos_dp: Fix incorrect setting for INT_CTL
authorAjay Kumar <ajaykumar.rs@samsung.com>
Mon, 5 Nov 2012 07:47:00 +0000 (16:47 +0900)
committerJingoo Han <jg1.han@samsung.com>
Thu, 29 Nov 2012 01:33:28 +0000 (10:33 +0900)
INT_CTL register contains bits INT_POL0 and INT_POL1, and not INT_POL.
This patch fixes the wrong register setting for INT_CTL.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
drivers/video/exynos/exynos_dp_reg.c
drivers/video/exynos/exynos_dp_reg.h

index 9fb901bcdd59e8113fc0aa7051c94a92784e3ea9..93b4b6bb796ca7334b54c30b162915aa81efc40a 100644 (file)
@@ -88,7 +88,7 @@ void exynos_dp_init_analog_param(struct exynos_dp_device *dp)
 void exynos_dp_init_interrupt(struct exynos_dp_device *dp)
 {
        /* Set interrupt pin assertion polarity as high */
-       writel(INT_POL, dp->reg_base + EXYNOS_DP_INT_CTL);
+       writel(INT_POL1 | INT_POL0, dp->reg_base + EXYNOS_DP_INT_CTL);
 
        /* Clear pending regisers */
        writel(0xff, dp->reg_base + EXYNOS_DP_COMMON_INT_STA_1);
index 1f2f014cfe88687c323428ba31c1e29c1cac9c2e..2e9bd0e0b9f2e1fc722b6c9ca0db4708f8cd4898 100644 (file)
 
 /* EXYNOS_DP_INT_CTL */
 #define SOFT_INT_CTRL                          (0x1 << 2)
-#define INT_POL                                        (0x1 << 0)
+#define INT_POL1                               (0x1 << 1)
+#define INT_POL0                               (0x1 << 0)
 
 /* EXYNOS_DP_SYS_CTL_1 */
 #define DET_STA                                        (0x1 << 2)