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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
23 #include <console/console.h>
24 #include <arch/acpi.h>
25 #include <arch/ioapic.h>
26 #include <arch/acpigen.h>
27 #include <arch/smp/mpspec.h>
28 #include <device/device.h>
29 #include <device/pci.h>
30 #include <device/pci_ids.h>
32 #include <cpu/x86/msr.h>
34 #include <southbridge/intel/bd82x6x/pch.h>
35 #include <southbridge/intel/bd82x6x/nvs.h>
38 static void acpi_update_thermal_table(global_nvs_t
*gnvs
)
40 gnvs
->tcrt
= CRITICAL_TEMPERATURE
;
41 gnvs
->tpsv
= PASSIVE_TEMPERATURE
;
44 void acpi_create_gnvs(global_nvs_t
*gnvs
)
46 memset((void *)gnvs
, 0, sizeof(*gnvs
));
48 gnvs
->mpen
= 1; /* Enable Multi Processing */
49 gnvs
->pcnt
= dev_count_cpu();
51 /* Disable USB ports in S3 by default */
55 /* Disable USB ports in S5 by default */
59 // the lid is open by default.
62 acpi_update_thermal_table(gnvs
);