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

Skip to content
Commit 7ac86e33 authored by Harry Yang's avatar Harry Yang
Browse files

power: smb5-lib: Add liquid presence detection function



Add liquid presence detection function based on SBUx resistance.
Read resistance from ADC channel ADC_SBUx for both SBU1 and SBU2
by selecting current source. Liquid is present if either reading
is below a given threshold.

Change-Id: I21682c68c9a68cad6880c391f75c1cec7dbe69c8
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 60733446
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