mb/google/skyrim: Add CFR option menu support
Add CFR option menu support when using edk2 payload and SMMSTORE. Include relevant items from ChromeEC. TEST=build/boot google/skyrim (frostflow), verify CFR option functionality. Change-Id: Ife5b20725794cdecc47f632e10421b86ceac68a5 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90315 Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c397821cb6
commit
0d81d38a31
3 changed files with 26 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ config BOARD_SPECIFIC_OPTIONS
|
|||
select DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_HID
|
||||
select DRIVERS_I2C_NAU8825
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select DRIVERS_USB_HUB
|
||||
select DRIVERS_UART_ACPI
|
||||
select DRIVERS_PCIE_GENERIC
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ ramstage-y += mainboard.c
|
|||
ramstage-y += ec.c
|
||||
ramstage-y += port_descriptors.c
|
||||
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
|
||||
verstage-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += verstage.c
|
||||
|
||||
|
|
|
|||
24
src/mainboard/google/skyrim/cfr.c
Normal file
24
src/mainboard/google/skyrim/cfr.c
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <boot/coreboot_tables.h>
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
#include <ec/google/chromeec/cfr.h>
|
||||
|
||||
static struct sm_obj_form ec = {
|
||||
.ui_name = "ChromeEC Embedded Controller",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&ec_kb_backlight,
|
||||
&auto_fan_control,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
|
||||
static struct sm_obj_form *sm_root[] = {
|
||||
&ec,
|
||||
NULL
|
||||
};
|
||||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue