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:
parent
e7c05d666c
commit
9a58dc7fee
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue