mb/google/fizz: Add CFR option for automatic fan control

Allow users to enable/disable automatic fan control via CFR options
menu.

TEST=build/boot fizz w/edk2 payload, verify automatic fan control
toggle functional.

Change-Id: I40e72b21f34e943b0f4bd6a206d004d89ec9692a
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90310
Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Matt DeVillier 2025-12-01 20:06:54 -06:00
commit a8a77f9da2

View file

@ -2,6 +2,7 @@
#include <boot/coreboot_tables.h>
#include <drivers/option/cfr_frontend.h>
#include <ec/google/chromeec/cfr.h>
#include <intelblocks/cfr.h>
#include <soc/cfr.h>
@ -24,6 +25,14 @@ static struct sm_obj_form system = {
},
};
static struct sm_obj_form ec = {
.ui_name = "ChromeEC Embedded Controller",
.obj_list = (const struct sm_object *[]) {
&auto_fan_control,
NULL
},
};
static struct sm_obj_form power = {
.ui_name = "Power",
.obj_list = (const struct sm_object *[]) {
@ -34,6 +43,7 @@ static struct sm_obj_form power = {
static struct sm_obj_form *sm_root[] = {
&system,
&ec,
&power,
NULL
};