From: Nian Jing Date: Tue, 26 Mar 2019 09:35:49 +0000 (+0800) Subject: tvafe: fix vertical stripes for tl1 [1/1] X-Git-Tag: hardkernel-4.9.236-104~1544 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=441536ab17a73508d2cdfdac1c0f5bd277a3c014;p=platform%2Fkernel%2Flinux-amlogic.git tvafe: fix vertical stripes for tl1 [1/1] PD#SWPL-6349 Problem: av vertical stripes on colobar Solution: fix vertical stripes Verify: verify on x301 Change-Id: I590f2b1da9b9a8f36973b00973b70a1c1c9dfb9e Signed-off-by: Nian Jing --- diff --git a/drivers/amlogic/media/vin/tvin/tvafe/tvafe_cvd.c b/drivers/amlogic/media/vin/tvin/tvafe/tvafe_cvd.c index 31ffdde..57fb669 100644 --- a/drivers/amlogic/media/vin/tvin/tvafe/tvafe_cvd.c +++ b/drivers/amlogic/media/vin/tvin/tvafe/tvafe_cvd.c @@ -553,11 +553,13 @@ static void tvafe_cvd2_write_mode_reg(struct tvafe_cvd2_s *cvd2, } /*set for wipe off vertical stripes*/ - if ((cvd2->vd_port > TVIN_PORT_CVBS0) && - (cvd2->vd_port <= TVIN_PORT_CVBS3) && - (cvd2->vd_port != TVIN_PORT_CVBS3) && - (tvafe_cpu_type() >= CPU_TYPE_TXL)) - W_APB_REG(ACD_REG_25, 0x00e941a8); + if (cvd2->vd_port == TVIN_PORT_CVBS1 || + cvd2->vd_port == TVIN_PORT_CVBS2) { + if (tvafe_cpu_type() >= CPU_TYPE_TL1) + W_APB_REG(ACD_REG_25, 0xeafb4e8e); + else if (tvafe_cpu_type() >= CPU_TYPE_TXL) + W_APB_REG(ACD_REG_25, 0x00e941a8); + } /* enable CVD2 */ W_APB_BIT(CVD2_RESET_REGISTER, 0, SOFT_RST_BIT, SOFT_RST_WID);