mb/*/*/acpi_tables: Remove unnecessary function call
[coreboot.git] / src / mainboard / intel / emeraldlake2 / acpi_tables.c
blobf9681ddf329006215970cd94481e8e1eff1b0364
1 /*
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.
16 #include <types.h>
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>
23 #include "thermal.h"
25 static global_nvs_t *gnvs_;
27 void acpi_create_gnvs(global_nvs_t *gnvs)
29 gnvs_ = gnvs;
31 /* Enable USB ports in S3 */
32 gnvs->s3u0 = 1;
33 gnvs->s3u1 = 1;
36 * Enable Front USB ports in S5 by default
37 * to be consistent with back port behavior
39 gnvs->s5u0 = 1;
40 gnvs->s5u1 = 1;
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;