Replace hard-coded PWM channels with defines so the second fan on darp10 can be handled like the second fan on units with a dGPU. Signed-off-by: Tim Crawford <tcrawford@system76.com>
47 lines
853 B
Makefile
47 lines
853 B
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_256K = y
|
|
|
|
# Enable eSPI
|
|
CONFIG_BUS_ESPI=y
|
|
CONFIG_PECI_OVER_ESPI = y
|
|
|
|
# Enable firmware security
|
|
CONFIG_SECURITY=y
|
|
|
|
# Include keyboard
|
|
KEYBOARD=14in_81
|
|
|
|
# Set keyboard LED mechanism
|
|
CONFIG_HAVE_KBLED = y
|
|
KBLED=white_dac
|
|
CFLAGS+=-DKBLED_DAC=2
|
|
|
|
# Set touchpad PS2 bus
|
|
CFLAGS+=-DPS2_TOUCHPAD=PS2_3
|
|
|
|
# Set smart charger parameters
|
|
CHARGER=oz26786
|
|
CFLAGS+=-DI2C_SMBUS=I2C_4
|
|
CFLAGS+=\
|
|
-DCHARGER_ADAPTER_RSENSE=5 \
|
|
-DCHARGER_BATTERY_RSENSE=10 \
|
|
-DCHARGER_CHARGE_CURRENT=1536 \
|
|
-DCHARGER_CHARGE_VOLTAGE=17600 \
|
|
-DCHARGER_INPUT_CURRENT=3420
|
|
|
|
# Set CPU power limits in watts
|
|
CFLAGS+=\
|
|
-DPOWER_LIMIT_AC=65 \
|
|
-DPOWER_LIMIT_DC=45
|
|
|
|
CFLAGS += -DFAN1_PWM=DCR2
|
|
|
|
# Add system76 common code
|
|
include src/board/system76/common/common.mk
|