From a3214c6d763f194b766b967720e7a02d0bfdccdc Mon Sep 17 00:00:00 2001 From: Isaac Lee Date: Wed, 10 Aug 2022 09:30:08 -0700 Subject: [PATCH] mb/google/skyrim: Create winterhold variant Create the winterhold variant of the skyrim reference board by copying the template files to a new directory named for the variant. (Auto-Generated by create_coreboot_variant.sh version 4.5.0). BUG=b:240970782 BRANCH=None TEST=util/abuild/abuild -p none -t google/skyrim -x -a make sure the build includes GOOGLE_WINTERHOLD Signed-off-by: Isaac Lee Change-Id: I0e16f0a674aa3f4687cd82d5840a3c2087148a51 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66620 Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/mainboard/google/skyrim/Kconfig | 2 ++ src/mainboard/google/skyrim/Kconfig.name | 4 +++ .../variants/winterhold/include/variant/ec.h | 3 ++ .../variants/winterhold/overridetree.cb | 32 +++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 src/mainboard/google/skyrim/variants/winterhold/include/variant/ec.h create mode 100644 src/mainboard/google/skyrim/variants/winterhold/overridetree.cb diff --git a/src/mainboard/google/skyrim/Kconfig b/src/mainboard/google/skyrim/Kconfig index 63584d7c78..ea485891fc 100644 --- a/src/mainboard/google/skyrim/Kconfig +++ b/src/mainboard/google/skyrim/Kconfig @@ -65,6 +65,7 @@ config MAINBOARD_FAMILY config MAINBOARD_PART_NUMBER default "Skyrim" if BOARD_GOOGLE_SKYRIM + default "Winterhold" if BOARD_GOOGLE_WINTERHOLD config OVERRIDE_DEVICETREE string @@ -73,6 +74,7 @@ config OVERRIDE_DEVICETREE config VARIANT_DIR string default "skyrim" if BOARD_GOOGLE_SKYRIM + default "winterhold" if BOARD_GOOGLE_WINTERHOLD config VBOOT select VBOOT_LID_SWITCH diff --git a/src/mainboard/google/skyrim/Kconfig.name b/src/mainboard/google/skyrim/Kconfig.name index a36235c7be..1587058da8 100644 --- a/src/mainboard/google/skyrim/Kconfig.name +++ b/src/mainboard/google/skyrim/Kconfig.name @@ -3,3 +3,7 @@ comment "Skyrim" config BOARD_GOOGLE_SKYRIM bool "-> Skyrim" select BOARD_GOOGLE_BASEBOARD_SKYRIM + +config BOARD_GOOGLE_WINTERHOLD + bool "-> Winterhold" + select BOARD_GOOGLE_BASEBOARD_SKYRIM diff --git a/src/mainboard/google/skyrim/variants/winterhold/include/variant/ec.h b/src/mainboard/google/skyrim/variants/winterhold/include/variant/ec.h new file mode 100644 index 0000000000..9e61a440cf --- /dev/null +++ b/src/mainboard/google/skyrim/variants/winterhold/include/variant/ec.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include diff --git a/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb b/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb new file mode 100644 index 0000000000..e0becd4173 --- /dev/null +++ b/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +chip soc/amd/mendocino + + # I2C Config + #+-------------------+----------------------------+ + #| Field | Value | + #+-------------------+----------------------------+ + #| I2C0 | Trackpad | + #| I2C1 | Touchscreen | + #| I2C2 | Speaker, Codec, P-SAR, USB | + #| I2C3 | D2 TPM | + #+-------------------+----------------------------+ + register "i2c[0]" = "{ + .speed = I2C_SPEED_FAST, + }" + + register "i2c[1]" = "{ + .speed = I2C_SPEED_FAST, + }" + + register "i2c[2]" = "{ + .speed = I2C_SPEED_FAST, + }" + + register "i2c[3]" = "{ + .speed = I2C_SPEED_FAST, + .early_init = true, + }" + + device domain 0 on end +end # chip soc/amd/mendocino