Remove the need for a "none" option by only adding KBLED sources when enabled. The resulting binaries with KBLED enabled (all of them) are identical. Signed-off-by: Tim Crawford <tcrawford@system76.com>
42 lines
754 B
Makefile
42 lines
754 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_128K = y
|
|
|
|
# Enable eSPI
|
|
CONFIG_BUS_ESPI=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
|
|
CHARGER=oz26786
|
|
CFLAGS+=\
|
|
-DCHARGER_ADAPTER_RSENSE=10 \
|
|
-DCHARGER_BATTERY_RSENSE=10 \
|
|
-DCHARGER_CHARGE_CURRENT=3072 \
|
|
-DCHARGER_CHARGE_VOLTAGE=8800 \
|
|
-DCHARGER_INPUT_CURRENT=4740
|
|
|
|
# Set CPU power limits in watts
|
|
CFLAGS+=\
|
|
-DPOWER_LIMIT_AC=65 \
|
|
-DPOWER_LIMIT_DC=45
|
|
|
|
# Add system76 common code
|
|
include src/board/system76/common/common.mk
|