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

Skip to content
Commit 30039a66 authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

regulator: cpr-regulator: Add minimum difference allowed for quotients



Sometimes after power-optimization adjustments to the fused quotients
the values may end up in a non-increasing order (NOM > TURBO) or
may get very close to each other. In the former case the driver
disables CPR. To avoid this, add support for specifying a minimum quotient
difference between 2 fuse corners. If this difference is not met add a
configurable quotient offset to the fuse corner quotient.

Example:
	cpr-fuse-min-quot-diff = <0 0 40>;
	cpr-min-quot-diff-adjustment = <0 0 104>;

	CPR log snippet:
		Corner[2] adjusted quotient = 1275
		Corner[3] adjusted quotient = 1261

	After adjustment applied:
		Corner[3] revised adjusted quotient = 1379

CRs-Fixed: 780871
Change-Id: Iec8b9a703a0018620f6d1d23326e6a32c3bf88d0
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 337c6b38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment