Skip to content

Commit

Permalink
video: exynos_dp: Fix incorrect setting for INT_CTL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ajay Kumar authored and Jingoo Han committed Nov 29, 2012
1 parent 22ce19c commit 2f85f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/video/exynos/exynos_dp_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion drivers/video/exynos/exynos_dp_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@

/* 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)
Expand Down

0 comments on commit 2f85f97

Please sign in to comment.