mb/google/auron: 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: Ib480c7dcd99eb5bf16b124584b4e7dbad90d0c84
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91346
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:21:25 +01:00
commit 9a58dc7fee

View file

@ -5,15 +5,11 @@
#include <ec/google/chromeec/cfr.h>
#include <soc/cfr.h>
static const struct sm_object touchscreen = SM_DECLARE_ENUM({
static const struct sm_object touchscreen = SM_DECLARE_BOOL({
.opt_name = "touchscreen",
.ui_name = "Touchscreen",
.ui_helptext = "Enable or disable the integrated touchscreen device",
.default_value = 1,
.values = (const struct sm_enum_value[]) {
{ "Disabled", 0 },
{ "Enabled", 1 },
SM_ENUM_VALUE_END },
.default_value = true,
#if !CONFIG(BOARD_GOOGLE_LULU)
.flags = CFR_OPTFLAG_SUPPRESS,
#endif