From d5109e4d3d651e1911034cbebf7ce00649fd59cd Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Wed, 9 Sep 2020 20:19:37 -0700 Subject: [PATCH] hwmon: qti_amoled_ecm: Fix initial value for ECM_WRITE_TO_SDAM Whenever ECM is enabled by the user, some SDAM registers are initialized for the proper operation. Change the initial value for ECM_WRITE_TO_SDAM as per the hardware recommendation. Change-Id: I7a414bb83640178055f3c5a463daa6328aaef69c Signed-off-by: Subbaraman Narayanamurthy --- drivers/hwmon/qti_amoled_ecm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/qti_amoled_ecm.c b/drivers/hwmon/qti_amoled_ecm.c index 5fc0fe3bb8ef..220dd515e630 100644 --- a/drivers/hwmon/qti_amoled_ecm.c +++ b/drivers/hwmon/qti_amoled_ecm.c @@ -183,7 +183,7 @@ static struct amoled_ecm_sdam_config ecm_reset_config[] = { { ECM_MODE, 0x00 }, /* Valid only when ECM uses 2 SDAMs */ { ECM_SEND_IRQ, 0x03 }, - { ECM_WRITE_TO_SDAM, 0x33 } + { ECM_WRITE_TO_SDAM, 0x03 } }; static int ecm_reset_sdam_config(struct amoled_ecm *ecm)