Angel Pons | 89ab250 | 2020-04-03 01:22:28 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 2 | |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 3 | #include <acpi/acpi_gnvs.h> |
Kyösti Mälkki | 661ad46 | 2020-12-29 06:26:21 +0200 | [diff] [blame] | 4 | #include <soc/nvs.h> |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 5 | |
Kyösti Mälkki | a9766c7 | 2020-06-29 02:56:49 +0300 | [diff] [blame] | 6 | void mainboard_fill_gnvs(struct global_nvs *gnvs) |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 7 | { |
Peter Lemenkov | 0c52638 | 2020-02-06 20:31:07 +0100 | [diff] [blame] | 8 | /* The lid is open by default */ |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 9 | gnvs->lids = 1; |
| 10 | |
Peter Lemenkov | 0c52638 | 2020-02-06 20:31:07 +0100 | [diff] [blame] | 11 | /* Temperature at which OS will shutdown */ |
| 12 | gnvs->tcrt = 100; |
| 13 | /* Temperature at which OS will throttle CPU */ |
| 14 | gnvs->tpsv = 90; |
Vladimir Serbinenko | 94930e2 | 2014-08-24 22:40:33 +0200 | [diff] [blame] | 15 | } |