mb/lenovo/*/acpi_tables: Add critical and passive threshold

Add critical and passive threshold to be advertised in thermal zone 0.

Change-Id: Ic75a80994b27ac19651ed52b7fc3c00c65cd9c01
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/21160
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Patrick Rudolph 2017-08-23 17:42:28 +02:00
parent 9c7ce28b2f
commit afa627db2e
5 changed files with 16 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include <device/pci_ids.h>
#include "southbridge/intel/i82801ix/nvs.h"
void acpi_create_gnvs(global_nvs_t *gnvs)
{
memset((void *)gnvs, 0, sizeof(*gnvs));
@ -36,6 +37,9 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
gnvs->cmap = 0x01;
gnvs->cmbp = 0x01;
/* Set thermal levels */
gnvs->tcrt = 100;
gnvs->tpsv = 90;
}
unsigned long acpi_fill_madt(unsigned long current)

View File

@ -32,4 +32,7 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
gnvs->cmap = 0x01;
gnvs->cmbp = 0x01;
/* Set thermal levels */
gnvs->tcrt = 100;
gnvs->tpsv = 90;
}

View File

@ -36,6 +36,9 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
gnvs->cmap = 0x01;
gnvs->cmbp = 0x01;
/* Set thermal levels */
gnvs->tcrt = 100;
gnvs->tpsv = 90;
}
unsigned long acpi_fill_madt(unsigned long current)

View File

@ -29,4 +29,7 @@
void acpi_create_gnvs(global_nvs_t * gnvs)
{
/* Set thermal levels */
gnvs->tcrt = 100;
gnvs->tpsv = 90;
}

View File

@ -32,4 +32,7 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
gnvs->cmap = 0x01;
gnvs->cmbp = 0x01;
/* Set thermal levels */
gnvs->tcrt = 100;
gnvs->tpsv = 90;
}