Pen Detect GPIO is exported through GPIO keys driver to the kernel so that stylus tools is popped on pen eject event. Hence enable the GPIO keys driver and configure the devicetree. BUG=b:186011392 TEST=Build and boot to OS in guybrush. Ensure that PRP0001 device is added to the ACPI SSDT table. Ensure that the Pen Eject events are detected. Event: time 1620159356.243180, type 5 (EV_SW), code 15 (SW_PEN_INSERTED), value 1 Event: time 1620159356.243180, -------------- SYN_REPORT ------------ Event: time 1620159356.735316, type 5 (EV_SW), code 15 (SW_PEN_INSERTED), value 0 Ensure that when the device is suspended, it wake on Pen Eject event and does not wake on Pen Insert event. Change-Id: I4d2aa29c0f1839c563b40734527a687a5618ba5c Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52906 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
101 lines
2.0 KiB
Plaintext
101 lines
2.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
config BOARD_GOOGLE_BASEBOARD_GUYBRUSH
|
|
def_bool n
|
|
|
|
if BOARD_GOOGLE_BASEBOARD_GUYBRUSH
|
|
|
|
config BOARD_SPECIFIC_OPTIONS
|
|
def_bool y
|
|
select AMD_SOC_CONSOLE_UART
|
|
select BOARD_ROMSIZE_KB_16384
|
|
select DISABLE_KEYBOARD_RESET_PIN
|
|
select DISABLE_SPI_FLASH_ROM_SHARING
|
|
select DRIVERS_AMD_I2S_MACHINE_DEV
|
|
select DRIVERS_GENERIC_GPIO_KEYS
|
|
select DRIVERS_I2C_GENERIC
|
|
select DRIVERS_I2C_HID
|
|
select DRIVERS_UART_ACPI
|
|
select EC_GOOGLE_CHROMEEC
|
|
select EC_GOOGLE_CHROMEEC_BOARDID
|
|
select EC_GOOGLE_CHROMEEC_ESPI
|
|
select EC_GOOGLE_CHROMEEC_SKUID
|
|
select ELOG
|
|
select ELOG_GSMI
|
|
select FW_CONFIG
|
|
select HAVE_ACPI_RESUME
|
|
select HAVE_EM100_SUPPORT
|
|
select HAVE_SPD_IN_CBFS
|
|
select MAINBOARD_HAS_CHROMEOS
|
|
select MAINBOARD_HAS_I2C_TPM_CR50
|
|
select MAINBOARD_HAS_TPM2
|
|
select PSP_DISABLE_POSTCODES
|
|
select SOC_AMD_CEZANNE
|
|
select SOC_AMD_COMMON_BLOCK_USE_ESPI
|
|
|
|
config CHROMEOS
|
|
select EC_GOOGLE_CHROMEEC_SWITCHES
|
|
|
|
config VBOOT
|
|
select VBOOT_LID_SWITCH
|
|
select VBOOT_SEPARATE_VERSTAGE
|
|
select VBOOT_STARTS_IN_BOOTBLOCK
|
|
|
|
config VBOOT_VBNV_OFFSET
|
|
hex
|
|
default 0x2A
|
|
|
|
config FMDFILE
|
|
string
|
|
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd"
|
|
|
|
config MAINBOARD_DIR
|
|
string
|
|
default "google/guybrush"
|
|
|
|
config MAINBOARD_PART_NUMBER
|
|
string
|
|
default "Guybrush" if BOARD_GOOGLE_GUYBRUSH
|
|
|
|
config AMD_FWM_POSITION_INDEX
|
|
int
|
|
default 3
|
|
help
|
|
TODO: might need to be adapted for better placement of files in cbfs
|
|
|
|
config DRIVER_TPM_I2C_BUS
|
|
hex
|
|
default 0x03
|
|
|
|
config DRIVER_TPM_I2C_ADDR
|
|
hex
|
|
default 0x50
|
|
|
|
config EFS_SPI_READ_MODE
|
|
int
|
|
default 0 if EM100 # Normal read mode
|
|
default 4 # Dual IO (1-2-2)
|
|
|
|
config EFS_SPI_SPEED
|
|
int
|
|
default 3 if EM100 # 16.66 MHz
|
|
default 1 # 33.33 MHz
|
|
|
|
config VARIANT_DIR
|
|
string
|
|
default "guybrush" if BOARD_GOOGLE_GUYBRUSH
|
|
|
|
config DEVICETREE
|
|
string
|
|
default "variants/baseboard/devicetree.cb"
|
|
|
|
config OVERRIDE_DEVICETREE
|
|
string
|
|
default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
|
|
|
|
config MAINBOARD_FAMILY
|
|
string
|
|
default "Google_Guybrush"
|
|
|
|
endif # BOARD_GOOGLE_BASEBOARD_GUYBRUSH
|