mb/google/skyrim: Enable variants for Skyrim

BUG=b:214414033
TEST=builds
BRANCH=none

Signed-off-by: Jon Murphy <jpmurphy@google.com>
Change-Id: I034ab8a06842bee12060103b4a1bc4e3db69e42a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62145
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
Jon Murphy 2022-02-17 14:48:55 -07:00 committed by Felix Held
parent af025d6ee1
commit 9e00571b49
5 changed files with 20 additions and 1 deletions

View File

@ -33,6 +33,14 @@ config MAINBOARD_FAMILY
config MAINBOARD_PART_NUMBER config MAINBOARD_PART_NUMBER
default "Skyrim" if BOARD_GOOGLE_SKYRIM default "Skyrim" if BOARD_GOOGLE_SKYRIM
config OVERRIDE_DEVICETREE
string
default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb"
config VARIANT_DIR
string
default "skyrim" if BOARD_GOOGLE_SKYRIM
config VBOOT config VBOOT
select VBOOT_NO_BOARD_SUPPORT select VBOOT_NO_BOARD_SUPPORT
select VBOOT_SEPARATE_VERSTAGE select VBOOT_SEPARATE_VERSTAGE

View File

@ -8,5 +8,7 @@ ramstage-y += mainboard.c
ramstage-$(CONFIG_CHROMEOS) += chromeos.c ramstage-$(CONFIG_CHROMEOS) += chromeos.c
subdirs-y += variants/baseboard subdirs-y += variants/baseboard
subdirs-y += variants/$(VARIANT_DIR)
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/$(VARIANT_DIR)/include

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <console/console.h>
#include <device/device.h> #include <device/device.h>
static void mainboard_configure_gpios(void) static void mainboard_configure_gpios(void)
@ -22,7 +23,7 @@ static void mainboard_init(void *chip_info)
static void mainboard_enable(struct device *dev) static void mainboard_enable(struct device *dev)
{ {
/* TODO: Enable mainboard */ printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
} }
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {

View File

@ -0,0 +1,3 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <baseboard/ec.h>

View File

@ -0,0 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
chip soc/amd/sabrina
device domain 0 on
end # domain
end # chip soc/amd/sabrina