75 lines
1.3 KiB
Makefile
75 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
board-y += board.c
|
|
board-y += gpio.c
|
|
|
|
EC=ite
|
|
CONFIG_EC_ITE_IT5570E=y
|
|
|
|
# Enable eSPI
|
|
CONFIG_BUS_ESPI=y
|
|
|
|
# Enable firmware security
|
|
CONFIG_SECURITY=y
|
|
|
|
# Include keyboard
|
|
KEYBOARD=15in_102_nkey
|
|
|
|
# Set keyboard LED mechanism
|
|
KBLED=bonw14
|
|
|
|
# Set discrete GPU I2C bus
|
|
CFLAGS+=-DI2C_DGPU=I2C_1
|
|
|
|
# Set battery I2C bus
|
|
CFLAGS+=-DI2C_SMBUS=I2C_4
|
|
|
|
# Set touchpad PS2 bus
|
|
CFLAGS+=-DPS2_TOUCHPAD=PS2_3
|
|
|
|
# Set USB-PD I2C bus
|
|
CFLAGS+=-DI2C_USBPD=I2C_1
|
|
|
|
# Set smart charger parameters
|
|
#TODO: 26786LN
|
|
CFLAGS+=\
|
|
-DCHARGER_ADAPTER_RSENSE=5 \
|
|
-DCHARGER_BATTERY_RSENSE=10 \
|
|
-DCHARGER_CHARGE_CURRENT=3072 \
|
|
-DCHARGER_CHARGE_VOLTAGE=17400 \
|
|
-DCHARGER_INPUT_CURRENT=16920
|
|
|
|
# Set USB-PD parameters
|
|
USBPD=tps65987
|
|
|
|
# Set CPU power limits in watts
|
|
CFLAGS+=\
|
|
-DPOWER_LIMIT_AC=330 \
|
|
-DPOWER_LIMIT_DC=55
|
|
|
|
# Custom fan curve
|
|
CFLAGS+=-DBOARD_HEATUP=5
|
|
CFLAGS+=-DBOARD_COOLDOWN=20
|
|
CFLAGS+=-DBOARD_FAN_POINTS="\
|
|
FAN_POINT(60, 40), \
|
|
FAN_POINT(65, 60), \
|
|
FAN_POINT(70, 75), \
|
|
FAN_POINT(75, 90), \
|
|
FAN_POINT(80, 100) \
|
|
"
|
|
|
|
# Enable DGPU support
|
|
CFLAGS+=-DHAVE_DGPU=1
|
|
CFLAGS+=-DBOARD_DGPU_HEATUP=5
|
|
CFLAGS+=-DBOARD_DGPU_COOLDOWN=20
|
|
CFLAGS+=-DBOARD_DGPU_FAN_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
|