amvecm: fix dnlp_en enable/disable not work [1/1]

PD#SWPL-7782

Problem:
dnlp_en enable/disable not work

Solution:
add tm2 support for dnlp enalbe/disable

Verify:
tm2

Change-Id: Ia0cf32a8f155b1e364b2aaf096f70f4f0a1ed50a
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
This commit is contained in:
Bencheng Jing
2019-05-06 16:28:07 +08:00
committed by Tao Zeng
parent dcba594ae7
commit ff7f8a02ba

View File

@@ -622,7 +622,7 @@ void ve_enable_dnlp(void)
if (dnlp_sel == NEW_DNLP_IN_SHARPNESS) {
if (is_meson_gxlx_cpu() || is_meson_txlx_cpu())
WRITE_VPP_REG_BITS(SRSHARP1_DNLP_EN, 1, 0, 1);
else if (is_meson_tl1_cpu())
else if (is_meson_tl1_cpu() || is_meson_tm2_cpu())
WRITE_VPP_REG_BITS(SHARP1_DNLP_EN, 1, 0, 1);
else
WRITE_VPP_REG_BITS(SRSHARP0_DNLP_EN, 1, 0, 1);
@@ -638,7 +638,7 @@ void ve_disable_dnlp(void)
if (dnlp_sel == NEW_DNLP_IN_SHARPNESS)
if (is_meson_gxlx_cpu() || is_meson_txlx_cpu())
WRITE_VPP_REG_BITS(SRSHARP1_DNLP_EN, 0, 0, 1);
else if (is_meson_tl1_cpu())
else if (is_meson_tl1_cpu() || is_meson_tm2_cpu())
WRITE_VPP_REG_BITS(SHARP1_DNLP_EN, 0, 0, 1);
else
WRITE_VPP_REG_BITS(SRSHARP0_DNLP_EN, 0, 0, 1);