2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #include <southbridge/intel/bd82x6x/nvs.h>
18 #include <ec/google/chromeec/ec.h>
19 #include <vendorcode/google/chromeos/gnvs.h>
22 void acpi_create_gnvs(global_nvs_t
*gnvs
)
24 /* Disable USB ports in S3 by default */
28 /* Disable USB ports in S5 by default */
33 gnvs
->chromeos
.vbt2
= google_ec_running_ro() ?
34 ACTIVE_ECFW_RO
: ACTIVE_ECFW_RW
;
37 gnvs
->tmps
= CTDP_SENSOR_ID
;
39 gnvs
->f1of
= CTDP_NOMINAL_THRESHOLD_OFF
;
40 gnvs
->f1on
= CTDP_NOMINAL_THRESHOLD_ON
;
42 gnvs
->f0of
= CTDP_DOWN_THRESHOLD_OFF
;
43 gnvs
->f0on
= CTDP_DOWN_THRESHOLD_ON
;
45 gnvs
->tcrt
= CRITICAL_TEMPERATURE
;
46 gnvs
->tpsv
= PASSIVE_TEMPERATURE
;
47 gnvs
->tmax
= MAX_TEMPERATURE
;
50 // the lid is open by default.