Fix smart charger values
Fix all smart charger values by having boards provide the RSENSE values and perform the register calculations in the code. The galp3-c, galp5, gaze16, and gaze17 do not seem to have the same behavior as the rest of the boards, and further investigation is needed. In the mean time, reduce their charge current values to preserve current behavior. Ref: OZ26786-DS v1.0 Ref: bq24780S Rev. C datasheet Signed-off-by: Tim Crawford <tcrawford@system76.com
This commit is contained in:
committed by
Tim Crawford
parent
20d40f3477
commit
6295f60172
@@ -19,7 +19,9 @@ CFLAGS+=-DPS2_TOUCHPAD=PS2_3
|
||||
|
||||
# Set smart charger parameters
|
||||
CFLAGS+=\
|
||||
-DCHARGER_CHARGE_CURRENT=1536 \
|
||||
-DCHARGER_ADAPTER_RSENSE=5 \
|
||||
-DCHARGER_BATTERY_RSENSE=10 \
|
||||
-DCHARGER_CHARGE_CURRENT=3072 \
|
||||
-DCHARGER_CHARGE_VOLTAGE=12600 \
|
||||
-DCHARGER_INPUT_CURRENT=11800
|
||||
|
||||
|
Reference in New Issue
Block a user