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

Commit e970fdf9 authored by Kiran Gunda's avatar Kiran Gunda Committed by Gerrit - the friendly Code Review server
Browse files

regulator: qpnp-lcdb: Disable step voltage ramp for PM8150L V3



The S/W work around to program the LCDB voltage in 500 mV steps
is required only for PM8150L version < V3. So, ignore this W/A
for the PM8150L V3 and above.

Change-Id: Iaaf15062a19c5f6ae492f949d721a991e5b46669
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent aa5b153c
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt)	"LCDB: %s: " fmt, __func__
@@ -2093,7 +2093,12 @@ static void qpnp_lcdb_pmic_config(struct qpnp_lcdb *lcdb)
			lcdb->wa_flags |= NCP_SCP_DISABLE_WA;
		break;
	case PMI632_SUBTYPE:
	case PM6150L_SUBTYPE:
		lcdb->wa_flags |= FORCE_PD_ENABLE_WA;
		break;
	case PM8150L_SUBTYPE:
		if (lcdb->pmic_rev_id->rev4 >= PM8150L_V3P0_REV4)
			lcdb->voltage_step_ramp = false;

		lcdb->wa_flags |= FORCE_PD_ENABLE_WA;
		break;
	default: