Files
system76-embedded-controller/src/board/system76/darp7/board.mk
Tim Crawford 69f97fe149 Merge common EC directories
Split the EC define into base and variant. Merge the 3 ATmega chips as
atmega, and the 2 ITE chips as ite.

Tested that the generated files are identical.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-10-27 09:42:45 -06:00

34 lines
589 B
Makefile

# SPDX-License-Identifier: GPL-3.0-only
EC=ite
EC_VARIANT=it5570e
# Enable eSPI
CFLAGS+=-DEC_ESPI=1
# Use S0ix
CFLAGS+=-DUSE_S0IX=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
CFLAGS+=\
-DCHARGER_ADAPTER_RSENSE=5 \
-DCHARGER_BATTERY_RSENSE=5 \
-DCHARGER_CHARGE_CURRENT=3072 \
-DCHARGER_CHARGE_VOLTAGE=8800 \
-DCHARGER_INPUT_CURRENT=3420
# Add system76 common code
include src/board/system76/common/common.mk