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:
parent
3f16609ba2
commit
c7a1539d87
1 changed files with 2 additions and 13 deletions
|
|
@ -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
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue