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>
This commit is contained in:
parent
960fb2f4b8
commit
af025d6ee1
|
@ -14,6 +14,7 @@ config AMD_FWM_POSITION_INDEX
|
||||||
config BOARD_SPECIFIC_OPTIONS
|
config BOARD_SPECIFIC_OPTIONS
|
||||||
def_bool y
|
def_bool y
|
||||||
select BOARD_ROMSIZE_KB_16384
|
select BOARD_ROMSIZE_KB_16384
|
||||||
|
select MAINBOARD_HAS_CHROMEOS
|
||||||
select SOC_AMD_SABRINA
|
select SOC_AMD_SABRINA
|
||||||
|
|
||||||
config DEVICETREE
|
config DEVICETREE
|
||||||
|
@ -32,4 +33,9 @@ config MAINBOARD_FAMILY
|
||||||
config MAINBOARD_PART_NUMBER
|
config MAINBOARD_PART_NUMBER
|
||||||
default "Skyrim" if BOARD_GOOGLE_SKYRIM
|
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
|
endif # BOARD_GOOGLE_BASEBOARD_SKYRIM
|
||||||
|
|
|
@ -5,6 +5,7 @@ bootblock-y += bootblock.c
|
||||||
romstage-y += port_descriptors.c
|
romstage-y += port_descriptors.c
|
||||||
|
|
||||||
ramstage-y += mainboard.c
|
ramstage-y += mainboard.c
|
||||||
|
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
|
||||||
|
|
||||||
subdirs-y += variants/baseboard
|
subdirs-y += variants/baseboard
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,20 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
#include <baseboard/gpio.h>
|
#include <baseboard/gpio.h>
|
||||||
|
#include <boot/coreboot_tables.h>
|
||||||
|
#include <bootmode.h>
|
||||||
|
#include <gpio.h>
|
||||||
#include <vendorcode/google/chromeos/chromeos.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[] = {
|
static const struct cros_gpio cros_gpios[] = {
|
||||||
CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_DEVICE_NAME),
|
CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_DEVICE_NAME),
|
||||||
CROS_GPIO_WP_AL(CROS_WP_GPIO, GPIO_DEVICE_NAME),
|
CROS_GPIO_WP_AL(CROS_WP_GPIO, GPIO_DEVICE_NAME),
|
||||||
|
|
Loading…
Reference in New Issue