amvecm: control cm_en status [1/1]

PD#SWPL-14964

Problem:
the screen color will abnormal after open cm_en

Solution:
adjust am_en status according to chip ID

Verify:
on newton

Change-Id: I8619dc4119c4d6c7e5a2d8f2985bbd508c7f94d7
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
This commit is contained in:
Cheng Wang
2019-10-15 15:53:46 +08:00
committed by Luan Yuan
parent e5f05183b0
commit 8e9563d189

View File

@@ -3489,7 +3489,9 @@ void pc_mode_process(void)
dnlp_en = 1;
ve_enable_dnlp();
/* open cm clock gate */
cm_en = 1;
if (!(is_meson_g12a_cpu() || is_meson_g12b_cpu() ||
is_meson_sm1_cpu()))
cm_en = 1;
/* sharpness on */
VSYNC_WR_MPEG_REG_BITS(
SRSHARP0_PK_NR_ENABLE + sr_offset[0],