mb/google/zork: 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/zork (morphius), verify CFR option functionality Change-Id: I21f6d01ab425fb698872735bca3514ae366bcdda Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90313 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
This commit is contained in:
parent
d105934073
commit
c1f0be39da
3 changed files with 26 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ config BOARD_SPECIFIC_OPTIONS
|
|||
select DRIVERS_USB_ACPI
|
||||
select DRIVERS_I2C_GENERIC
|
||||
select DRIVERS_I2C_HID
|
||||
select DRIVERS_OPTION_CFR_ENABLED if PAYLOAD_EDK2 && SMMSTORE
|
||||
select EC_GOOGLE_CHROMEEC
|
||||
select EC_GOOGLE_CHROMEEC_AUDIO_CODEC
|
||||
select EC_GOOGLE_CHROMEEC_BOARDID
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ romstage-y += romstage.c
|
|||
ramstage-y += chromeos.c
|
||||
ramstage-y += ec.c
|
||||
ramstage-y += sku_id.c
|
||||
ramstage-$(CONFIG_DRIVERS_OPTION_CFR) += cfr.c
|
||||
|
||||
verstage-y += chromeos.c
|
||||
verstage-y += verstage.c
|
||||
|
|
|
|||
24
src/mainboard/google/zork/cfr.c
Normal file
24
src/mainboard/google/zork/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 *[]) {
|
||||
&auto_fan_control
|
||||
&ec_kb_backlight,
|
||||
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