darp10 demonstrates that a board without a dGPU may still have a second fan, so rename the CPU (PECI) fan to FAN1 and dGPU fan to FAN2. Signed-off-by: Tim Crawford <tcrawford@system76.com>
59 lines
1.1 KiB
Makefile
59 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
board-y += board.c
|
|
board-y += gpio.c
|
|
|
|
EC=ite
|
|
CONFIG_EC_ITE_IT5570E=y
|
|
CONFIG_EC_FLASH_SIZE_128K = y
|
|
|
|
# Include keyboard
|
|
KEYBOARD=15in_102
|
|
|
|
# Set keyboard LED mechanism
|
|
CONFIG_HAVE_KBLED = y
|
|
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=10 \
|
|
-DCHARGER_CHARGE_CURRENT=3072 \
|
|
-DCHARGER_CHARGE_VOLTAGE=12600 \
|
|
-DCHARGER_INPUT_CURRENT=11800
|
|
|
|
# Set CPU power limits in watts
|
|
CFLAGS+=\
|
|
-DPOWER_LIMIT_AC=180 \
|
|
-DPOWER_LIMIT_DC=45
|
|
|
|
# Custom fan curve
|
|
CFLAGS += -DBOARD_FAN1_POINTS="\
|
|
FAN_POINT(60, 40), \
|
|
FAN_POINT(65, 60), \
|
|
FAN_POINT(70, 75), \
|
|
FAN_POINT(75, 90), \
|
|
FAN_POINT(80, 100), \
|
|
"
|
|
|
|
# Enable dGPU support
|
|
CONFIG_HAVE_DGPU = y
|
|
CFLAGS += -DI2C_DGPU=I2C_1
|
|
|
|
CFLAGS += -DBOARD_FAN2_POINTS="\
|
|
FAN_POINT(60, 40), \
|
|
FAN_POINT(65, 60), \
|
|
FAN_POINT(70, 75), \
|
|
FAN_POINT(75, 90), \
|
|
FAN_POINT(80, 100), \
|
|
"
|
|
|
|
# Add system76 common code
|
|
include src/board/system76/common/common.mk
|