Files
system76-embedded-controller/src/board/system76/oryp10/board.mk
Tim Crawford f8697a7ec4 Make fan names more generic
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>
2024-07-17 16:28:39 -06:00

75 lines
1.4 KiB
Makefile

# SPDX-License-Identifier: GPL-3.0-only
board-y += ../oryp9/board.c
board-y += ../oryp9/gpio.c
# FIXME: Handle this better
CFLAGS += -I$(BOARD_DIR)/../oryp9/include
EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Enable firmware security
CONFIG_SECURITY=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
# TODO: actually bq24800
# FIXME: Verify parts and values.
CFLAGS+=\
-DCHARGER_ADAPTER_RSENSE=5 \
-DCHARGER_BATTERY_RSENSE=10 \
-DCHARGER_CHARGE_CURRENT=2048 \
-DCHARGER_CHARGE_VOLTAGE=13050 \
-DCHARGER_INPUT_CURRENT=11500
# Set CPU power limits in watts
CFLAGS+=\
-DPOWER_LIMIT_AC=180 \
-DPOWER_LIMIT_DC=45
# Custom fan curve
CFLAGS += -DBOARD_FAN1_HEATUP=5
CFLAGS += -DBOARD_FAN1_COOLDOWN=20
CFLAGS += -DBOARD_FAN1_POINTS="\
FAN_POINT(50, 40), \
FAN_POINT(55, 40), \
FAN_POINT(60, 55), \
FAN_POINT(69, 55), \
FAN_POINT(74, 68), \
FAN_POINT(79, 68), \
FAN_POINT(80, 72), \
FAN_POINT(87, 100), \
"
# Enable dGPU support
CONFIG_HAVE_DGPU = y
CFLAGS += -DI2C_DGPU=I2C_1
CFLAGS += -DBOARD_FAN2_HEATUP=5
CFLAGS += -DBOARD_FAN2_COOLDOWN=20
CFLAGS += -DBOARD_FAN2_POINTS="\
FAN_POINT(50, 40), \
FAN_POINT(56, 40), \
FAN_POINT(72, 100), \
"
# Add system76 common code
include src/board/system76/common/common.mk