mb/starlabs/lite: Use SoC common CFR forms

Use SoC common CFR forms where available.

Change-Id: I05106aca4402ec977a4593a4523dd7f30156b96c
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87984
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Matt DeVillier 2025-05-09 12:38:55 -05:00 committed by Sean Rhodes
commit c7a1539d87

View file

@ -1,14 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <boot/coreboot_tables.h>
#include <commonlib/coreboot_tables.h>
#include <console/cfr.h>
#include <drivers/option/cfr_frontend.h>
#include <ec/starlabs/merlin/cfr.h>
#include <inttypes.h>
#include <intelblocks/pcie_rp.h>
#include <string.h>
#include <types.h>
#include <intelblocks/cfr.h>
#include <variants.h>
static const struct sm_object card_reader = SM_DECLARE_BOOL({
@ -27,13 +23,6 @@ static const struct sm_object fast_charge = SM_DECLARE_BOOL({
});
#endif
static const struct sm_object power_on_after_fail = SM_DECLARE_BOOL({
.opt_name = "power_on_after_fail",
.ui_name = "Power on after failure",
.ui_helptext = "Automatically turn on after a power failure",
.default_value = false,
});
static const struct sm_object power_profile = SM_DECLARE_ENUM({
.opt_name = "power_profile",
.ui_name = "Power Profile",
@ -96,7 +85,7 @@ static struct sm_obj_form power = {
#if CONFIG(EC_STARLABS_FAST_CHARGE)
&fast_charge,
#endif
&power_on_after_fail,
&power_on_after_fail_bool,
NULL
},
};