mb/starlabs/*: Default to ASPM_L0S_L1 over ASPM_AUTO
Set the default for ASPM to ASPM_L0S_L1 rather than ASPM_AUTO, as using AUTO won't always enable ASPM for some SSDs (Western Digital). Test=build and flash starbook/mtl; check new default is ASPM_L0S_L1 in edk2 menu. Change-Id: If66dcabe5eca717565e0378ab36db8a4cb220d43 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90838 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
53d31a4152
commit
7d4e2c6150
7 changed files with 19 additions and 0 deletions
|
|
@ -77,5 +77,6 @@ static struct sm_obj_form *sm_root[] = {
|
|||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
starlabs_cfr_register_overrides();
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,22 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
#include <intelblocks/pcie_rp.h>
|
||||
#include <common/cfr.h>
|
||||
|
||||
void __weak cfr_card_reader_update(struct sm_object *new_obj)
|
||||
{
|
||||
(void)new_obj;
|
||||
}
|
||||
|
||||
static const struct cfr_default_override starlabs_cfr_overrides[] = {
|
||||
CFR_OVERRIDE_ENUM("pciexp_aspm", ASPM_L0S_L1),
|
||||
CFR_OVERRIDE_END
|
||||
};
|
||||
|
||||
void starlabs_cfr_register_overrides(void)
|
||||
{
|
||||
if (!CONFIG(DRIVERS_OPTION_CFR))
|
||||
return;
|
||||
cfr_register_overrides(starlabs_cfr_overrides);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <common/powercap.h>
|
||||
|
||||
void cfr_card_reader_update(struct sm_object *new_obj);
|
||||
void starlabs_cfr_register_overrides(void);
|
||||
|
||||
static const struct sm_object accelerometer = SM_DECLARE_BOOL({
|
||||
.opt_name = "accelerometer",
|
||||
|
|
|
|||
|
|
@ -87,5 +87,6 @@ static struct sm_obj_form *sm_root[] = {
|
|||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
starlabs_cfr_register_overrides();
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,5 +124,6 @@ static struct sm_obj_form *sm_root[] = {
|
|||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
starlabs_cfr_register_overrides();
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,5 +109,6 @@ static struct sm_obj_form *sm_root[] = {
|
|||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
starlabs_cfr_register_overrides();
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,5 +107,6 @@ static struct sm_obj_form *sm_root[] = {
|
|||
|
||||
void mb_cfr_setup_menu(struct lb_cfr *cfr_root)
|
||||
{
|
||||
starlabs_cfr_register_overrides();
|
||||
cfr_write_setup_menu(cfr_root, sm_root);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue