Patrick Rudolph | aae6e9c | 2016-12-30 17:02:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2008-2009 coresystems GmbH |
| 5 | * Copyright (C) 2016 Patrick Rudolph <siro@das-labor.org> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; version 2 of |
| 10 | * the License. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | */ |
| 17 | |
| 18 | #include <southbridge/intel/bd82x6x/pch.h> |
| 19 | #include <southbridge/intel/bd82x6x/nvs.h> |
| 20 | #include "thermal.h" |
| 21 | |
| 22 | static void acpi_update_thermal_table(global_nvs_t *gnvs) |
| 23 | { |
| 24 | gnvs->tcrt = CRITICAL_TEMPERATURE; |
| 25 | gnvs->tpsv = PASSIVE_TEMPERATURE; |
| 26 | } |
| 27 | |
| 28 | void acpi_create_gnvs(global_nvs_t *gnvs) |
| 29 | { |
| 30 | /* Disable USB ports in S3 by default */ |
| 31 | gnvs->s3u0 = 0; |
| 32 | gnvs->s3u1 = 0; |
| 33 | |
| 34 | /* Disable USB ports in S5 by default */ |
| 35 | gnvs->s5u0 = 0; |
| 36 | gnvs->s5u1 = 0; |
| 37 | |
| 38 | |
| 39 | // the lid is open by default. |
| 40 | gnvs->lids = 1; |
| 41 | |
| 42 | acpi_update_thermal_table(gnvs); |
| 43 | } |