mb/google/link: Add CFR option menu support
Add CFR option menu support when using edk2 payload and SMMSTORE. Include relevant items from Sandy/Ivybridge, C216 SB, and ChromeEC. TEST=build/boot google/link, verify CFR option functionality. Change-Id: I08cccf136f20018aee925372b5c181bf4b55e0cd Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90319 Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
75460f531c
commit
f61ecfa154
3 changed files with 41 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ config BOARD_SPECIFIC_OPTIONS
|
|||
select AZALIA_USE_LEGACY_VERB_TABLE
|
||||
select ACPI_GNVS_USB_CHARGECTL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select EC_GOOGLE_CHROMEEC
|
||||
select EC_GOOGLE_CHROMEEC_AUTO_FAN_CTRL
|
||||
select EC_GOOGLE_CHROMEEC_LPC
|
||||
|
|
|
|||
|
|
@ -15,3 +15,5 @@ bootblock-y += gpio.c
|
|||
romstage-y += gpio.c
|
||||
bootblock-y += early_init.c
|
||||
romstage-y += early_init.c
|
||||
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
|
|
|
|||
38
src/mainboard/google/link/cfr.c
Normal file
38
src/mainboard/google/link/cfr.c
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <boot/coreboot_tables.h>
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
#include <ec/google/chromeec/cfr.h>
|
||||
#include <northbridge/intel/sandybridge/cfr.h>
|
||||
#include <southbridge/intel/bd82x6x/cfr.h>
|
||||
|
||||
static struct sm_obj_form system = {
|
||||
.ui_name = "System",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&gfx_uma_size,
|
||||
&me_state,
|
||||
&me_state_prev,
|
||||
&nmi,
|
||||
&sata_mode,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
|
||||
static struct sm_obj_form ec = {
|
||||
.ui_name = "ChromeEC Embedded Controller",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&auto_fan_control,
|
||||
&ec_kb_backlight,
|
||||
NULL
|
||||
},
|
||||
};
|
||||
static struct sm_obj_form *sm_root[] = {
|
||||
&system,
|
||||
&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