mb/starlabs/starlite_adl: Allow controlling the power LED brightness
Add an option to selected a reduced brightness for the power LED. The EC code will use this option to write to the relavant offset accordingly. Change-Id: I4796e0572a48bca5f9c59e96466416e975cfe8ca Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86240 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
3c5dd6b6a5
commit
0e841e82cf
1 changed files with 13 additions and 0 deletions
|
|
@ -193,6 +193,18 @@ static const struct sm_object pciexp_l1ss = SM_DECLARE_ENUM({
|
|||
});
|
||||
#endif
|
||||
|
||||
static const struct sm_object power_led = SM_DECLARE_ENUM({
|
||||
.opt_name = "power_led",
|
||||
.ui_name = "Power LED Brightness",
|
||||
.ui_helptext = "Control the maximum brightness of the power LED",
|
||||
.default_value = 0,
|
||||
.values = (const struct sm_enum_value[]) {
|
||||
{ "Normal", 0 },
|
||||
{ "Reduced", 1 },
|
||||
SM_ENUM_VALUE_END,
|
||||
},
|
||||
});
|
||||
|
||||
static const struct sm_object reboot_counter = SM_DECLARE_NUMBER({
|
||||
.opt_name = "reboot_counter",
|
||||
.ui_name = "Reboot Counter",
|
||||
|
|
@ -254,6 +266,7 @@ static struct sm_obj_form power = {
|
|||
#if CONFIG(EC_STARLABS_CHARGING_SPEED)
|
||||
&charging_speed,
|
||||
#endif
|
||||
&power_led,
|
||||
&power_on_after_fail,
|
||||
NULL
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue