tvafe: optimize DADC stability for tl1 [1/1]
authorEvoke Zhang <evoke.zhang@amlogic.com>
Tue, 6 Aug 2019 11:31:32 +0000 (19:31 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 14 Aug 2019 02:13:26 +0000 (19:13 -0700)
PD#SWPL-12474

Problem:
sometime demod adc fail

Solution:
optimize DADC stability

Verify:
x301

Change-Id: I2202e4a11a9095ff79c0dd3f2afa1600d0e4e2df
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
drivers/amlogic/media/vin/tvin/tvafe/tvafe_general.c

index 62b9e58..a296131 100644 (file)
@@ -399,7 +399,7 @@ static void tvafe_set_cvbs_default(struct tvafe_cvd2_s *cvd2,
                        W_HIU_REG(HHI_DADC_CNTL3, 0x00082183);
                } else if (tvafe_cpu_type() >= CPU_TYPE_TL1) {
                        /** DADC CNTL for LIF signal input **/
-                       W_HIU_REG(HHI_DADC_CNTL, 0x0030303c);
+                       W_HIU_REG(HHI_DADC_CNTL, 0x00303044);
                        W_HIU_REG(HHI_DADC_CNTL2, 0x00003480);
                        W_HIU_REG(HHI_DADC_CNTL3, 0x08300b83);
                } else {
@@ -419,7 +419,7 @@ static void tvafe_set_cvbs_default(struct tvafe_cvd2_s *cvd2,
                        W_HIU_REG(HHI_DADC_CNTL2, 0x00000400);
                        W_HIU_REG(HHI_DADC_CNTL3, 0x00082183);
                } else if (tvafe_cpu_type() >= CPU_TYPE_TL1) {
-                       W_HIU_REG(HHI_DADC_CNTL, 0x0030303c);
+                       W_HIU_REG(HHI_DADC_CNTL, 0x00303044);
                        W_HIU_REG(HHI_DADC_CNTL2, 0x00003400);
                        W_HIU_REG(HHI_DADC_CNTL3, 0x08300b83);
                }
@@ -552,7 +552,7 @@ void tvafe_set_ddemod_default(void)
                W_APB_REG(TVFE_VAFE_CTRL1, 0x3000);
                W_APB_REG(TVFE_VAFE_CTRL2, 0x1fe09e31);
 
-               W_HIU_REG(HHI_DADC_CNTL, 0x0030303c);
+               W_HIU_REG(HHI_DADC_CNTL, 0x00303044);
                W_HIU_REG(HHI_DADC_CNTL2, 0x00003480);
                W_HIU_REG(HHI_DADC_CNTL3, 0x08300b83);