Files
system76-embedded-controller/src/board/system76/darp8/board.mk
Tim Crawford 6295f60172 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
2022-08-01 19:26:36 -06:00

31 lines
559 B
Makefile

# SPDX-License-Identifier: GPL-3.0-only
EC=it5570e
# Enable eSPI
CFLAGS+=-DEC_ESPI=1
# Include keyboard
KEYBOARD=15in_102
# Set keyboard LED mechanism
KBLED=rgb_pwm
# Set battery I2C bus
CFLAGS+=-DI2C_SMBUS=I2C_4
# Set touchpad PS2 bus
CFLAGS+=-DPS2_TOUCHPAD=PS2_3
# Set smart charger parameters
CHARGER=oz26786
CFLAGS+=\
-DCHARGER_ADAPTER_RSENSE=10 \
-DCHARGER_BATTERY_RSENSE=10 \
-DCHARGER_CHARGE_CURRENT=3072 \
-DCHARGER_CHARGE_VOLTAGE=8800 \
-DCHARGER_INPUT_CURRENT=4740
# Add system76 common code
include src/board/system76/common/common.mk