igd.asl rewrite
[coreboot.git] / src / mainboard / gigabyte / ga-b75m-d3v / acpi_tables.c
blob70eeeb2bdcef28d62bf730e968ea6a037fc70ced
1 /*
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
17 * Foundation, Inc.
20 #include <types.h>
21 #include <string.h>
22 #include <cbmem.h>
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>
31 #include <cpu/cpu.h>
32 #include <cpu/x86/msr.h>
34 #include <southbridge/intel/bd82x6x/pch.h>
35 #include <southbridge/intel/bd82x6x/nvs.h>
36 #include "thermal.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));
47 gnvs->apic = 1;
48 gnvs->mpen = 1; /* Enable Multi Processing */
49 gnvs->pcnt = dev_count_cpu();
51 /* Disable USB ports in S3 by default */
52 gnvs->s3u0 = 0;
53 gnvs->s3u1 = 0;
55 /* Disable USB ports in S5 by default */
56 gnvs->s5u0 = 0;
57 gnvs->s5u1 = 0;
59 // the lid is open by default.
60 gnvs->lids = 1;
62 acpi_update_thermal_table(gnvs);