Add config for host platform

Introduce a new config to determine the host platform and use it to
conditionally include power sequence logic.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2024-08-27 07:47:09 -06:00
committed by Tim Crawford
parent ae63a9e3fb
commit 2c6977bc6b
44 changed files with 128 additions and 57 deletions

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT8587E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,7 +7,8 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI=y
# Enable firmware security

View File

@ -7,7 +7,8 @@ EC = ite
CONFIG_EC_ITE_IT5570E = y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
CONFIG_PECI_OVER_ESPI = y

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102_nkey

View File

@ -10,7 +10,8 @@ EC = ite
CONFIG_EC_ITE_IT5570E = y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -17,7 +17,6 @@ board-common-y += parallel.c
board-common-y += peci.c
board-common-y += pmc.c
board-common-y += pnp.c
board-common-y += power.c
board-common-y += ps2.c
board-common-y += pwm.c
board-common-y += scratch.c
@ -42,6 +41,13 @@ CFLAGS+=-DLEVEL=4
# Uncomment to enable I2C debug on 0x76
#CFLAGS+=-DI2C_DEBUGGER=0x76
ifeq ($(CONFIG_PLATFORM_INTEL),y)
board-common-y += power/intel.c
CFLAGS += -DCONFIG_PLATFORM_INTEL=1
else
$(error PLATFORM not specified)
endif
ifeq ($(CONFIG_SECURITY),y)
CFLAGS+=-DCONFIG_SECURITY=1
endif

View File

@ -7,7 +7,8 @@ EC = ite
CONFIG_EC_ITE_IT5570E = y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security

View File

@ -7,7 +7,8 @@ EC = ite
CONFIG_EC_ITE_IT5570E = y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT8587E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -10,6 +10,9 @@ EC=ite
CONFIG_EC_ITE_IT8587E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT8587E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=14in_86

View File

@ -10,6 +10,9 @@ EC=ite
CONFIG_EC_ITE_IT8587E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=14in_86

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=14in_83

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -10,8 +10,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -10,8 +10,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -10,8 +10,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=14in_83

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=14in_83

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
CONFIG_PECI_OVER_ESPI = y
# Enable firmware security

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
CONFIG_PECI_OVER_ESPI = y
# Enable firmware security

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=14in_83

View File

@ -10,8 +10,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,10 +7,10 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Use PECI over eSPI
CONFIG_PECI_OVER_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
CONFIG_PECI_OVER_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,7 +7,8 @@ EC = ite
CONFIG_EC_ITE_IT5570E = y
CONFIG_EC_FLASH_SIZE_256K = y
# Enable eSPI
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
CONFIG_PECI_OVER_ESPI = y

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT8587E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,6 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Include keyboard
KEYBOARD=15in_102

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y

View File

@ -7,8 +7,9 @@ EC=ite
CONFIG_EC_ITE_IT5570E=y
CONFIG_EC_FLASH_SIZE_128K = y
# Enable eSPI
CONFIG_BUS_ESPI=y
# Intel-based host
CONFIG_PLATFORM_INTEL = y
CONFIG_BUS_ESPI = y
# Enable firmware security
CONFIG_SECURITY=y