2 * This file is part of the coreboot project.
4 * Copyright (C) 2012 The Chromium OS Authors. All rights reserved.
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 <arch/acpi.h>
18 #include <arch/smp/mpspec.h>
19 #include <device/device.h>
20 #include <vendorcode/google/chromeos/gnvs.h>
21 #include <southbridge/intel/bd82x6x/nvs.h>
25 static global_nvs_t
*gnvs_
;
27 void acpi_create_gnvs(global_nvs_t
*gnvs
)
31 /* Enable USB ports in S3 */
36 * Enable Front USB ports in S5 by default
37 * to be consistent with back port behavior
42 gnvs
->f4of
= FAN4_THRESHOLD_OFF
;
43 gnvs
->f4on
= FAN4_THRESHOLD_ON
;
44 gnvs
->f4pw
= FAN4_PWM
;
46 gnvs
->f3of
= FAN3_THRESHOLD_OFF
;
47 gnvs
->f3on
= FAN3_THRESHOLD_ON
;
48 gnvs
->f3pw
= FAN3_PWM
;
50 gnvs
->f2of
= FAN2_THRESHOLD_OFF
;
51 gnvs
->f2on
= FAN2_THRESHOLD_ON
;
52 gnvs
->f2pw
= FAN2_PWM
;
54 gnvs
->f1of
= FAN1_THRESHOLD_OFF
;
55 gnvs
->f1on
= FAN1_THRESHOLD_ON
;
56 gnvs
->f1pw
= FAN1_PWM
;
58 gnvs
->f0of
= FAN0_THRESHOLD_OFF
;
59 gnvs
->f0on
= FAN0_THRESHOLD_ON
;
60 gnvs
->f0pw
= FAN0_PWM
;
62 gnvs
->tcrt
= CRITICAL_TEMPERATURE
;
63 gnvs
->tpsv
= PASSIVE_TEMPERATURE
;
64 gnvs
->tmax
= MAX_TEMPERATURE
;
66 // Stumpy has no arms^H^H^H^HEC.
67 gnvs
->chromeos
.vbt2
= ACTIVE_ECFW_RO
;