Nicolas Reinecke | 29d358e | 2015-01-31 19:20:50 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2007-2009 coresystems GmbH |
| 5 | * |
| 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. |
| 9 | * |
| 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. |
Nicolas Reinecke | 29d358e | 2015-01-31 19:20:50 +0100 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include <arch/acpigen.h> |
| 17 | #include <southbridge/intel/bd82x6x/nvs.h> |
| 18 | #include "thermal.h" |
| 19 | |
| 20 | static void acpi_update_thermal_table(global_nvs_t *gnvs) |
| 21 | { |
| 22 | gnvs->tcrt = CRITICAL_TEMPERATURE; |
| 23 | gnvs->tpsv = PASSIVE_TEMPERATURE; |
| 24 | } |
| 25 | |
| 26 | void acpi_create_gnvs(global_nvs_t *gnvs) |
| 27 | { |
| 28 | /* Disable USB ports in S3 by default */ |
| 29 | gnvs->s3u0 = 0; |
| 30 | gnvs->s3u1 = 0; |
| 31 | |
| 32 | /* Disable USB ports in S5 by default */ |
| 33 | gnvs->s5u0 = 0; |
| 34 | gnvs->s5u1 = 0; |
| 35 | |
Nicolas Reinecke | 29d358e | 2015-01-31 19:20:50 +0100 | [diff] [blame] | 36 | // the lid is open by default. |
| 37 | gnvs->lids = 1; |
| 38 | |
| 39 | acpi_update_thermal_table(gnvs); |
| 40 | } |