diff options
author | Jon Murphy <jpmurphy@google.com> | 2022-02-16 06:44:53 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-26 00:16:17 +0000 |
commit | af025d6ee124a6bafb23302f616b4839de3e120e (patch) | |
tree | ad027851f10aec939170d21bbd56600f5d68619b /src/mainboard/google/skyrim | |
parent | 960fb2f4b8bcf18c108e6db1a81c2d1584e88126 (diff) |
mb/google/skyrim: CONFIG_CHROMEOS
BUG=b:214415401
TEST=builds
BRANCH=none
Signed-off-by: Jon Murphy <jpmurphy@google.com>
Change-Id: I045f76c366a1a72814536a2be984b7ad5a438a5a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62043
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/skyrim')
-rw-r--r-- | src/mainboard/google/skyrim/Kconfig | 6 | ||||
-rw-r--r-- | src/mainboard/google/skyrim/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/skyrim/chromeos.c | 12 |
3 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/skyrim/Kconfig b/src/mainboard/google/skyrim/Kconfig index 619ac6443d..99c7a4fe46 100644 --- a/src/mainboard/google/skyrim/Kconfig +++ b/src/mainboard/google/skyrim/Kconfig @@ -14,6 +14,7 @@ config AMD_FWM_POSITION_INDEX config BOARD_SPECIFIC_OPTIONS def_bool y select BOARD_ROMSIZE_KB_16384 + select MAINBOARD_HAS_CHROMEOS select SOC_AMD_SABRINA config DEVICETREE @@ -32,4 +33,9 @@ config MAINBOARD_FAMILY config MAINBOARD_PART_NUMBER default "Skyrim" if BOARD_GOOGLE_SKYRIM +config VBOOT + select VBOOT_NO_BOARD_SUPPORT + select VBOOT_SEPARATE_VERSTAGE + select VBOOT_STARTS_IN_BOOTBLOCK + endif # BOARD_GOOGLE_BASEBOARD_SKYRIM diff --git a/src/mainboard/google/skyrim/Makefile.inc b/src/mainboard/google/skyrim/Makefile.inc index df2762dfea..d076bc1ae0 100644 --- a/src/mainboard/google/skyrim/Makefile.inc +++ b/src/mainboard/google/skyrim/Makefile.inc @@ -5,6 +5,7 @@ bootblock-y += bootblock.c romstage-y += port_descriptors.c ramstage-y += mainboard.c +ramstage-$(CONFIG_CHROMEOS) += chromeos.c subdirs-y += variants/baseboard diff --git a/src/mainboard/google/skyrim/chromeos.c b/src/mainboard/google/skyrim/chromeos.c index a729fce29f..77ef255542 100644 --- a/src/mainboard/google/skyrim/chromeos.c +++ b/src/mainboard/google/skyrim/chromeos.c @@ -1,8 +1,20 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include <baseboard/gpio.h> +#include <boot/coreboot_tables.h> +#include <bootmode.h> +#include <gpio.h> #include <vendorcode/google/chromeos/chromeos.h> +void fill_lb_gpios(struct lb_gpios *gpios) +{ + struct lb_gpio chromeos_gpios[] = { + /* TODO Enable lid switch with EC */ + {-1, ACTIVE_HIGH, 0, "power"}, + }; + lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); +} + static const struct cros_gpio cros_gpios[] = { CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_DEVICE_NAME), CROS_GPIO_WP_AL(CROS_WP_GPIO, GPIO_DEVICE_NAME), |