From 593ac8d74902ec16d592bb948da55cf9949b47fe Mon Sep 17 00:00:00 2001 From: Frank Wu Date: Tue, 6 Dec 2022 17:22:55 +0800 Subject: [PATCH] mb/google/skyrim/var/frostflow: Add FW_CONFIG definition Based on the SKU plan, add FW_CONFIG definition. BUG=b:260473966 BRANCH=None TEST=emerge-skyrim coreboot chromeos-bootimage Signed-off-by: Frank Wu Change-Id: I727f69e8fe340cfe624adb5a49bd080ba9544786 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70418 Reviewed-by: Eric Lai Reviewed-by: Dtrain Hsu Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- .../skyrim/variants/frostflow/overridetree.cb | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/skyrim/variants/frostflow/overridetree.cb b/src/mainboard/google/skyrim/variants/frostflow/overridetree.cb index 5581499491..d4b659985f 100644 --- a/src/mainboard/google/skyrim/variants/frostflow/overridetree.cb +++ b/src/mainboard/google/skyrim/variants/frostflow/overridetree.cb @@ -1,4 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-or-later +fw_config + field FP 0 + option FP_ABSENT 0 + option FP_PRESENT 1 + end + field STYLUS 1 + option STYLUS_ABSENT 0 + option STYLUS_PRESENT 1 + end +end chip soc/amd/mendocino # Set Package Power Parameters @@ -75,7 +85,9 @@ chip soc/amd/mendocino register "key.label" = ""pen_eject"" register "key.debounce_interval" = "100" register "key.wakeup_route" = "WAKEUP_ROUTE_GPIO_IRQ" - device generic 0 on end + device generic 0 on + probe STYLUS STYLUS_PRESENT + end end end # I2C1 device ref i2c_2 on @@ -118,7 +130,9 @@ chip soc/amd/mendocino register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPIO_12)" register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_4)" register "enable_delay_ms" = "3" - device generic 0 alias fpmcu on end + device generic 0 alias fpmcu on + probe FP FP_PRESENT + end end end # UART1