mb/google/volteer: Replace CFR enums with booleans

Boolean options are intended to represent generic "Enable"/"Disable"
options, but without enum options' extra bloat in the CFR structures.

Change-Id: I8f3a69dfb9fb915c44c9a5486512aa82c2615fab
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91345
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Angel Pons 2026-02-18 21:19:45 +01:00
commit e7c05d666c

View file

@ -6,17 +6,13 @@
#include <intelblocks/cfr.h>
#include <soc/cfr.h>
static const struct sm_object touchpad_wake = SM_DECLARE_ENUM({
static const struct sm_object touchpad_wake = SM_DECLARE_BOOL({
.opt_name = "touchpad_wake",
.ui_name = "Touchpad Wake",
.ui_helptext = "Enable or disable touchpad wake from sleep.\n"
"Disabled by default to prevent random wakeups when\n"
"the system is moved while sleeping.",
.default_value = 0,
.values = (const struct sm_enum_value[]) {
{ "Disabled", 0 },
{ "Enabled", 1 },
SM_ENUM_VALUE_END },
.default_value = false,
});
static struct sm_obj_form system = {