mb/google/poppy: 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: I491f92b334d0e9f98737b94a7232e9361e86743d Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91348 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6b481c73dd
commit
90f9d9e7c6
1 changed files with 1 additions and 5 deletions
|
|
@ -6,15 +6,11 @@
|
|||
#include <intelblocks/cfr.h>
|
||||
#include <soc/cfr.h>
|
||||
|
||||
static const struct sm_object ipu_camera = SM_DECLARE_ENUM({
|
||||
static const struct sm_object ipu_camera = SM_DECLARE_BOOL({
|
||||
.opt_name = "ipu_camera",
|
||||
.ui_name = "IPU Camera",
|
||||
.ui_helptext = "Enable or disable integrated camera devices",
|
||||
.default_value = true,
|
||||
.values = (const struct sm_enum_value[]) {
|
||||
{ "Disabled", 0 },
|
||||
{ "Enabled", 1 },
|
||||
SM_ENUM_VALUE_END },
|
||||
#if !CONFIG(VARIANT_HAS_CAMERA_ACPI)
|
||||
.flags = CFR_OPTFLAG_SUPPRESS,
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue