From a0bbe146cabe3b57f040250573b6f6b5fa5218a8 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 30 Jun 2023 14:59:35 -0600 Subject: [PATCH] oryp11,serw13: Set adapter Rsense to 10 milliohms PRS1 is 5, but it is in series with PRS3, which is also 5. PRS1 by itself is only connected to ACP/ACN through R331. Ref: oryp11 schematics, AC In Charger (Sheet 59) Ref: serw13 schematics, AC_In, Charger (Sheet 70) Signed-off-by: Tim Crawford --- src/board/system76/oryp11/board.mk | 2 +- src/board/system76/serw13/board.mk | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/board/system76/oryp11/board.mk b/src/board/system76/oryp11/board.mk index 8b77bfb03..a0b028df1 100644 --- a/src/board/system76/oryp11/board.mk +++ b/src/board/system76/oryp11/board.mk @@ -36,7 +36,7 @@ CFLAGS+=-DI2C_USBPD=I2C_1 # TODO: actually bq24800 CHARGER=bq24780s CFLAGS+=\ - -DCHARGER_ADAPTER_RSENSE=5 \ + -DCHARGER_ADAPTER_RSENSE=10 \ -DCHARGER_BATTERY_RSENSE=10 \ -DCHARGER_CHARGE_CURRENT=3072 \ -DCHARGER_CHARGE_VOLTAGE=17600 \ diff --git a/src/board/system76/serw13/board.mk b/src/board/system76/serw13/board.mk index 8d990ef58..cd3c05d6e 100644 --- a/src/board/system76/serw13/board.mk +++ b/src/board/system76/serw13/board.mk @@ -32,9 +32,8 @@ CFLAGS+=-DI2C_USBPD=I2C_1 # Set smart charger parameters # TODO: actually bq24800 -# XXX: What is PRS3? CFLAGS+=\ - -DCHARGER_ADAPTER_RSENSE=5 \ + -DCHARGER_ADAPTER_RSENSE=10 \ -DCHARGER_BATTERY_RSENSE=10 \ -DCHARGER_CHARGE_CURRENT=2048 \ -DCHARGER_CHARGE_VOLTAGE=13050 \