Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b68b1f39 authored by Yuchao Ma's avatar Yuchao Ma
Browse files

drm/msm/sde: writer the register in ad calibration



No effect when set Assertiveness in AD4 calibration tools.
The calibration parameters_027 and parameters_028 was
missing to write the 0xE0 register in AD HW.

Change-Id: Ibc63634e0a102c9bd766c6129a15519bf0ccbdb9
Signed-off-by: default avatarQing Huang <huangq@codeaurora.org>
Signed-off-by: default avatarYuchao Ma <yuchaom@codeaurora.org>
parent 436b6888
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -786,6 +786,7 @@ static int ad4_cfg_setup(struct sde_hw_dspp *dspp, struct sde_ad_hw_cfg *cfg)
	blk_offset += 4;
	val = (ad_cfg->cfg_param_027 & (BIT(16) - 1));
	val |= ((ad_cfg->cfg_param_028 & (BIT(16) - 1)) << 16);
	SDE_REG_WRITE(&dspp->hw, dspp->cap->sblk->ad.base + blk_offset, val);
	blk_offset += 4;
	val = (ad_cfg->cfg_param_029 & (BIT(16) - 1));
	SDE_REG_WRITE(&dspp->hw, dspp->cap->sblk->ad.base + blk_offset, val);