soc/intel/cnvi: Add CFLR Method
This method is used to limit frequencies on CNVi. Intel document #559910 details this. Change-Id: Idc4c35e71076fd31786212995472bb8d58c961de Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83712 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
This commit is contained in:
parent
b0128b18b5
commit
abe2e62f62
1 changed files with 19 additions and 0 deletions
|
|
@ -339,6 +339,25 @@ static void cnvw_fill_ssdt(const struct device *dev)
|
|||
acpigen_pop_len();
|
||||
|
||||
acpigen_write_scope_end();
|
||||
|
||||
/*
|
||||
* Method (CFLR, 0, NotSerialized)
|
||||
* {
|
||||
* If (^CNVW.WFLR == One)
|
||||
* {
|
||||
* ^CNVW.WIFR = One
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
acpigen_write_method("CFLR", 0);
|
||||
{
|
||||
acpigen_write_if_lequal_namestr_int("^CNVW.WFLR", 1);
|
||||
{
|
||||
acpigen_write_store_int_to_namestr(1, "^CNVW.WIFR");
|
||||
}
|
||||
acpigen_pop_len();
|
||||
}
|
||||
acpigen_pop_len();
|
||||
}
|
||||
|
||||
static struct device_operations cnvi_wifi_ops = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue