mb/google/auron: Add CFR option menu support
Add CFR option menu support when using edk2 payload and SMMSTORE. Include relevant items from Broadwell Soc and ChromeEC. TEST=build/boot google/lulu, verify CFR option functionality. Change-Id: I9a5d61464cbf88b621c38a3779a7409977f20bed Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90165 Reviewed-by: Sean Rhodes <sean@starlabs.systems> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
7ed515d1c3
commit
88d3f563b3
3 changed files with 35 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ config BOARD_GOOGLE_BASEBOARD_AURON
|
|||
select ACPI_GNVS_USB_CHARGECTL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select BROADWELL_LPDDR3 if BOARD_GOOGLE_SAMUS
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select EC_GOOGLE_CHROMEEC
|
||||
select EC_GOOGLE_CHROMEEC_LPC
|
||||
select HAVE_ACPI_RESUME
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ ifneq ($(CONFIG_BOARD_GOOGLE_BUDDY),y)
|
|||
romstage-y += variants/$(VARIANT_DIR)/variant.c
|
||||
endif
|
||||
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
|
||||
ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
|
||||
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
|
||||
|
|
|
|||
33
src/mainboard/google/auron/cfr.c
Normal file
33
src/mainboard/google/auron/cfr.c
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* 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 <soc/cfr.h>
|
||||
|
||||
static struct sm_obj_form system = {
|
||||
.ui_name = "System",
|
||||
.obj_list = (const struct sm_object *[]) {
|
||||
&me_disable,
|
||||
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