Skip to content

Commit

Permalink
bonw15: Set battery Rsense to 5
Browse files Browse the repository at this point in the history
PRS3 is 0.005 Ohms.

However, I am unsure about this change because PRS1 and PRS2 are also
both 0.005 Ohms, but are in *parallel*.

Ref: bonw15 schematics, Charger (Sheet 70)
Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd authored and jackpot51 committed Jul 6, 2023
1 parent 42a19b3 commit 4458d5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/board/system76/bonw15/board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ CFLAGS+=-DPS2_TOUCHPAD=PS2_3
CFLAGS+=-DI2C_USBPD=I2C_1

# Set smart charger parameters
# XXX: PRS1 and PRS2 are in parallel for adapter Rsense?
CHARGER=oz26786
CFLAGS+=\
-DCHARGER_ADAPTER_RSENSE=5 \
-DCHARGER_BATTERY_RSENSE=10 \
-DCHARGER_BATTERY_RSENSE=5 \
-DCHARGER_CHARGE_CURRENT=3072 \
-DCHARGER_CHARGE_VOLTAGE=17400 \
-DCHARGER_INPUT_CURRENT=16920
Expand Down

0 comments on commit 4458d5d

Please sign in to comment.