mb/*/*/acpi_tables: Remove unnecessary function call
Remove acpi_update_thermal_table local function. Change-Id: I4857348088feb8eaf1dd7f553c4efb29da8943cf Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36212 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
1fe7dcb047
commit
6c2c018e15
@@ -17,12 +17,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
memset((void *)gnvs, 0, sizeof(*gnvs));
|
memset((void *)gnvs, 0, sizeof(*gnvs));
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -19,15 +19,6 @@
|
|||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <variant/thermal.h>
|
#include <variant/thermal.h>
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tmps = CTL_TDP_SENSOR_ID;
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
|
||||||
gnvs->flvl = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
acpi_init_gnvs(gnvs);
|
acpi_init_gnvs(gnvs);
|
||||||
@@ -38,7 +29,11 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
/* Disable USB ports in S5 */
|
/* Disable USB ports in S5 */
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tmps = CTL_TDP_SENSOR_ID;
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
|
gnvs->flvl = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long acpi_fill_madt(unsigned long current)
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
|
@@ -23,8 +23,24 @@
|
|||||||
#include <vendorcode/google/chromeos/gnvs.h>
|
#include <vendorcode/google/chromeos/gnvs.h>
|
||||||
#include <variant/thermal.h>
|
#include <variant/thermal.h>
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
|
/* Enable USB ports in S3 */
|
||||||
|
gnvs->s3u0 = 1;
|
||||||
|
gnvs->s3u1 = 1;
|
||||||
|
|
||||||
|
/* Disable USB ports in S5 */
|
||||||
|
gnvs->s5u0 = 0;
|
||||||
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
|
/* TPM Present */
|
||||||
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
#if CONFIG(CHROMEOS)
|
||||||
|
// SuperIO is always RO
|
||||||
|
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
||||||
|
#endif
|
||||||
|
|
||||||
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
||||||
gnvs->f4on = FAN4_THRESHOLD_ON;
|
gnvs->f4on = FAN4_THRESHOLD_ON;
|
||||||
gnvs->f4pw = FAN4_PWM;
|
gnvs->f4pw = FAN4_PWM;
|
||||||
@@ -50,25 +66,3 @@ static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|||||||
gnvs->tmax = MAX_TEMPERATURE;
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
gnvs->flvl = 5;
|
gnvs->flvl = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
/* Enable USB ports in S3 */
|
|
||||||
gnvs->s3u0 = 1;
|
|
||||||
gnvs->s3u1 = 1;
|
|
||||||
|
|
||||||
/* Disable USB ports in S5 */
|
|
||||||
gnvs->s5u0 = 0;
|
|
||||||
gnvs->s5u1 = 0;
|
|
||||||
|
|
||||||
/* TPM Present */
|
|
||||||
gnvs->tpmp = 1;
|
|
||||||
|
|
||||||
|
|
||||||
#if CONFIG(CHROMEOS)
|
|
||||||
// SuperIO is always RO
|
|
||||||
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
|
||||||
}
|
|
||||||
|
@@ -18,13 +18,6 @@
|
|||||||
#include <vendorcode/google/chromeos/gnvs.h>
|
#include <vendorcode/google/chromeos/gnvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
/* EC handles all thermal and fan control on Butterfly. */
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -45,6 +38,8 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
/* EC handles all thermal and fan control on Butterfly. */
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -22,15 +22,6 @@
|
|||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <variant/thermal.h>
|
#include <variant/thermal.h>
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tmps = TEMPERATURE_SENSOR_ID;
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
|
||||||
gnvs->flvl = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
acpi_init_gnvs(gnvs);
|
acpi_init_gnvs(gnvs);
|
||||||
@@ -41,7 +32,11 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
/* Disable USB ports in S5 */
|
/* Disable USB ports in S5 */
|
||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tmps = TEMPERATURE_SENSOR_ID;
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
|
gnvs->flvl = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long acpi_fill_madt(unsigned long current)
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
|
@@ -19,22 +19,6 @@
|
|||||||
#include <vendorcode/google/chromeos/gnvs.h>
|
#include <vendorcode/google/chromeos/gnvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tmps = CTDP_SENSOR_ID;
|
|
||||||
|
|
||||||
gnvs->f1of = CTDP_NOMINAL_THRESHOLD_OFF;
|
|
||||||
gnvs->f1on = CTDP_NOMINAL_THRESHOLD_ON;
|
|
||||||
|
|
||||||
gnvs->f0of = CTDP_DOWN_THRESHOLD_OFF;
|
|
||||||
gnvs->f0on = CTDP_DOWN_THRESHOLD_ON;
|
|
||||||
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
|
||||||
gnvs->flvl = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -50,7 +34,18 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tmps = CTDP_SENSOR_ID;
|
||||||
|
|
||||||
|
gnvs->f1of = CTDP_NOMINAL_THRESHOLD_OFF;
|
||||||
|
gnvs->f1on = CTDP_NOMINAL_THRESHOLD_ON;
|
||||||
|
|
||||||
|
gnvs->f0of = CTDP_DOWN_THRESHOLD_OFF;
|
||||||
|
gnvs->f0on = CTDP_DOWN_THRESHOLD_ON;
|
||||||
|
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
|
gnvs->flvl = 1;
|
||||||
|
|
||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
@@ -26,13 +26,6 @@
|
|||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
#include "onboard.h"
|
#include "onboard.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
/* EC handles all active thermal and fan control on Parrot. */
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -49,7 +42,9 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
/* EC handles all active thermal and fan control on Parrot. */
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
|
||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
@@ -24,16 +24,6 @@
|
|||||||
|
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tmps = TEMPERATURE_SENSOR_ID;
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
|
||||||
gnvs->f0pw = EC_THROTTLE_POWER_LIMIT;
|
|
||||||
gnvs->flvl = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Enable USB ports in S3 */
|
/* Enable USB ports in S3 */
|
||||||
@@ -53,5 +43,10 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tmps = TEMPERATURE_SENSOR_ID;
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
|
gnvs->f0pw = EC_THROTTLE_POWER_LIMIT;
|
||||||
|
gnvs->flvl = 1;
|
||||||
}
|
}
|
||||||
|
@@ -27,14 +27,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
/* EC handles all thermal and fan control on Stout. */
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -51,7 +43,10 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
ACTIVE_ECFW_RO : ACTIVE_ECFW_RW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
/* EC handles all thermal and fan control on Stout. */
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
|
|
||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
@@ -23,8 +23,28 @@
|
|||||||
|
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
|
/* Enable USB ports in S3 */
|
||||||
|
gnvs->s3u0 = 1;
|
||||||
|
gnvs->s3u1 = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable Front USB ports in S5 by default
|
||||||
|
* to be consistent with back port behavior
|
||||||
|
*/
|
||||||
|
gnvs->s5u0 = 1;
|
||||||
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
|
/* TPM Present */
|
||||||
|
gnvs->tpmp = 1;
|
||||||
|
|
||||||
|
|
||||||
|
#if CONFIG(CHROMEOS)
|
||||||
|
/* Emerald Lake has no EC (?) */
|
||||||
|
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
||||||
|
#endif
|
||||||
|
|
||||||
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
||||||
gnvs->f4on = FAN4_THRESHOLD_ON;
|
gnvs->f4on = FAN4_THRESHOLD_ON;
|
||||||
gnvs->f4pw = FAN4_PWM;
|
gnvs->f4pw = FAN4_PWM;
|
||||||
@@ -49,28 +69,3 @@ static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
/* Enable USB ports in S3 */
|
|
||||||
gnvs->s3u0 = 1;
|
|
||||||
gnvs->s3u1 = 1;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable Front USB ports in S5 by default
|
|
||||||
* to be consistent with back port behavior
|
|
||||||
*/
|
|
||||||
gnvs->s5u0 = 1;
|
|
||||||
gnvs->s5u1 = 1;
|
|
||||||
|
|
||||||
/* TPM Present */
|
|
||||||
gnvs->tpmp = 1;
|
|
||||||
|
|
||||||
|
|
||||||
#if CONFIG(CHROMEOS)
|
|
||||||
/* Emerald Lake has no EC (?) */
|
|
||||||
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
|
||||||
}
|
|
||||||
|
@@ -24,8 +24,21 @@
|
|||||||
|
|
||||||
static global_nvs_t *gnvs_;
|
static global_nvs_t *gnvs_;
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
|
gnvs_ = gnvs;
|
||||||
|
|
||||||
|
/* Enable USB ports in S3 */
|
||||||
|
gnvs->s3u0 = 1;
|
||||||
|
gnvs->s3u1 = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable Front USB ports in S5 by default
|
||||||
|
* to be consistent with back port behavior
|
||||||
|
*/
|
||||||
|
gnvs->s5u0 = 1;
|
||||||
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
||||||
gnvs->f4on = FAN4_THRESHOLD_ON;
|
gnvs->f4on = FAN4_THRESHOLD_ON;
|
||||||
gnvs->f4pw = FAN4_PWM;
|
gnvs->f4pw = FAN4_PWM;
|
||||||
@@ -49,25 +62,6 @@ static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs_ = gnvs;
|
|
||||||
|
|
||||||
/* Enable USB ports in S3 */
|
|
||||||
gnvs->s3u0 = 1;
|
|
||||||
gnvs->s3u1 = 1;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable Front USB ports in S5 by default
|
|
||||||
* to be consistent with back port behavior
|
|
||||||
*/
|
|
||||||
gnvs->s5u0 = 1;
|
|
||||||
gnvs->s5u1 = 1;
|
|
||||||
|
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
|
||||||
|
|
||||||
// Stumpy has no arms^H^H^H^HEC.
|
// Stumpy has no arms^H^H^H^HEC.
|
||||||
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
||||||
|
@@ -16,13 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
/* EC handles all thermal and fan control on Butterfly. */
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -33,5 +26,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
gnvs->s5u0 = 0;
|
gnvs->s5u0 = 0;
|
||||||
gnvs->s5u1 = 0;
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -19,12 +19,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -38,5 +32,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
/* The LID is open by default */
|
/* The LID is open by default */
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -22,12 +22,6 @@
|
|||||||
#include <southbridge/intel/i82801ix/nvs.h>
|
#include <southbridge/intel/i82801ix/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
memset((void *)gnvs, 0, sizeof(*gnvs));
|
memset((void *)gnvs, 0, sizeof(*gnvs));
|
||||||
@@ -38,7 +32,8 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
gnvs->cmap = 0x01;
|
gnvs->cmap = 0x01;
|
||||||
gnvs->cmbp = 0x01;
|
gnvs->cmbp = 0x01;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long acpi_fill_madt(unsigned long current)
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,21 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tmps = CTDP_SENSOR_ID;
|
|
||||||
|
|
||||||
gnvs->f1of = CTDP_NOMINAL_THRESHOLD_OFF;
|
|
||||||
gnvs->f1on = CTDP_NOMINAL_THRESHOLD_ON;
|
|
||||||
|
|
||||||
gnvs->f0of = CTDP_DOWN_THRESHOLD_OFF;
|
|
||||||
gnvs->f0on = CTDP_DOWN_THRESHOLD_ON;
|
|
||||||
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -44,5 +29,15 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tmps = CTDP_SENSOR_ID;
|
||||||
|
|
||||||
|
gnvs->f1of = CTDP_NOMINAL_THRESHOLD_OFF;
|
||||||
|
gnvs->f1on = CTDP_NOMINAL_THRESHOLD_ON;
|
||||||
|
|
||||||
|
gnvs->f0of = CTDP_DOWN_THRESHOLD_OFF;
|
||||||
|
gnvs->f0on = CTDP_DOWN_THRESHOLD_ON;
|
||||||
|
|
||||||
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -18,17 +18,12 @@
|
|||||||
#include <southbridge/intel/i82801gx/nvs.h>
|
#include <southbridge/intel/i82801gx/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Enable both COM ports */
|
/* Enable both COM ports */
|
||||||
gnvs->cmap = 0x01;
|
gnvs->cmap = 0x01;
|
||||||
gnvs->cmbp = 0x01;
|
gnvs->cmbp = 0x01;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -22,12 +22,6 @@
|
|||||||
#include <southbridge/intel/i82801ix/nvs.h>
|
#include <southbridge/intel/i82801ix/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
memset((void *)gnvs, 0, sizeof(*gnvs));
|
memset((void *)gnvs, 0, sizeof(*gnvs));
|
||||||
@@ -38,7 +32,8 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
gnvs->cmap = 0x01;
|
gnvs->cmap = 0x01;
|
||||||
gnvs->cmbp = 0x01;
|
gnvs->cmbp = 0x01;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long acpi_fill_madt(unsigned long current)
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
|
@@ -18,13 +18,8 @@
|
|||||||
#include <southbridge/intel/ibexpeak/nvs.h>
|
#include <southbridge/intel/ibexpeak/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t * gnvs)
|
|
||||||
{
|
|
||||||
acpi_update_thermal_table(gnvs);
|
|
||||||
}
|
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -16,12 +16,6 @@
|
|||||||
#include <southbridge/intel/bd82x6x/nvs.h>
|
#include <southbridge/intel/bd82x6x/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Disable USB ports in S3 by default */
|
/* Disable USB ports in S3 by default */
|
||||||
@@ -35,5 +29,6 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
|
|||||||
// the lid is open by default.
|
// the lid is open by default.
|
||||||
gnvs->lids = 1;
|
gnvs->lids = 1;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -18,17 +18,12 @@
|
|||||||
#include <southbridge/intel/i82801gx/nvs.h>
|
#include <southbridge/intel/i82801gx/nvs.h>
|
||||||
#include "thermal.h"
|
#include "thermal.h"
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
/* Enable both COM ports */
|
/* Enable both COM ports */
|
||||||
gnvs->cmap = 0x01;
|
gnvs->cmap = 0x01;
|
||||||
gnvs->cmbp = 0x01;
|
gnvs->cmbp = 0x01;
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
||||||
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
}
|
}
|
||||||
|
@@ -27,8 +27,24 @@
|
|||||||
|
|
||||||
static global_nvs_t *gnvs_;
|
static global_nvs_t *gnvs_;
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
|
gnvs_ = gnvs;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disable 3G in suspend by default.
|
||||||
|
* Provide option to enable for http://crosbug.com/p/7925
|
||||||
|
*/
|
||||||
|
gnvs->s33g = 0;
|
||||||
|
|
||||||
|
/* Disable USB ports in S3 by default */
|
||||||
|
gnvs->s3u0 = 0;
|
||||||
|
gnvs->s3u1 = 0;
|
||||||
|
|
||||||
|
/* Disable USB ports in S5 by default */
|
||||||
|
gnvs->s5u0 = 0;
|
||||||
|
gnvs->s5u1 = 0;
|
||||||
|
|
||||||
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
||||||
gnvs->f4on = FAN4_THRESHOLD_ON;
|
gnvs->f4on = FAN4_THRESHOLD_ON;
|
||||||
|
|
||||||
@@ -48,28 +64,6 @@ static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
gnvs->flvl = 5;
|
gnvs->flvl = 5;
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs_ = gnvs;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Disable 3G in suspend by default.
|
|
||||||
* Provide option to enable for http://crosbug.com/p/7925
|
|
||||||
*/
|
|
||||||
gnvs->s33g = 0;
|
|
||||||
|
|
||||||
/* Disable USB ports in S3 by default */
|
|
||||||
gnvs->s3u0 = 0;
|
|
||||||
gnvs->s3u1 = 0;
|
|
||||||
|
|
||||||
/* Disable USB ports in S5 by default */
|
|
||||||
gnvs->s5u0 = 0;
|
|
||||||
gnvs->s5u1 = 0;
|
|
||||||
|
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
|
||||||
|
|
||||||
gnvs->chromeos.vbt2 = ec_read(0xcb) ? ACTIVE_ECFW_RW : ACTIVE_ECFW_RO;
|
gnvs->chromeos.vbt2 = ec_read(0xcb) ? ACTIVE_ECFW_RW : ACTIVE_ECFW_RO;
|
||||||
}
|
}
|
||||||
|
@@ -24,8 +24,21 @@
|
|||||||
|
|
||||||
static global_nvs_t *gnvs_;
|
static global_nvs_t *gnvs_;
|
||||||
|
|
||||||
static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
void acpi_create_gnvs(global_nvs_t *gnvs)
|
||||||
{
|
{
|
||||||
|
gnvs_ = gnvs;
|
||||||
|
|
||||||
|
/* Enable Front USB ports in S3 by default */
|
||||||
|
gnvs->s3u0 = 1;
|
||||||
|
gnvs->s3u1 = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable Front USB ports in S5 by default
|
||||||
|
* to be consistent with back port behavior
|
||||||
|
*/
|
||||||
|
gnvs->s5u0 = 1;
|
||||||
|
gnvs->s5u1 = 1;
|
||||||
|
|
||||||
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
gnvs->f4of = FAN4_THRESHOLD_OFF;
|
||||||
gnvs->f4on = FAN4_THRESHOLD_ON;
|
gnvs->f4on = FAN4_THRESHOLD_ON;
|
||||||
gnvs->f4pw = FAN4_PWM;
|
gnvs->f4pw = FAN4_PWM;
|
||||||
@@ -50,25 +63,6 @@ static void acpi_update_thermal_table(global_nvs_t *gnvs)
|
|||||||
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
||||||
gnvs->tmax = MAX_TEMPERATURE;
|
gnvs->tmax = MAX_TEMPERATURE;
|
||||||
gnvs->flvl = 5;
|
gnvs->flvl = 5;
|
||||||
}
|
|
||||||
|
|
||||||
void acpi_create_gnvs(global_nvs_t *gnvs)
|
|
||||||
{
|
|
||||||
gnvs_ = gnvs;
|
|
||||||
|
|
||||||
/* Enable Front USB ports in S3 by default */
|
|
||||||
gnvs->s3u0 = 1;
|
|
||||||
gnvs->s3u1 = 1;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Enable Front USB ports in S5 by default
|
|
||||||
* to be consistent with back port behavior
|
|
||||||
*/
|
|
||||||
gnvs->s5u0 = 1;
|
|
||||||
gnvs->s5u1 = 1;
|
|
||||||
|
|
||||||
|
|
||||||
acpi_update_thermal_table(gnvs);
|
|
||||||
|
|
||||||
// Stumpy has no arms^H^H^H^HEC.
|
// Stumpy has no arms^H^H^H^HEC.
|
||||||
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
gnvs->chromeos.vbt2 = ACTIVE_ECFW_RO;
|
||||||
|
Reference in New Issue
Block a user