Angel Pons | 47f26db | 2020-04-05 13:22:34 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | c625d09 | 2013-10-04 16:00:07 -0500 | [diff] [blame] | 2 | |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 3 | #include <acpi/acpi.h> |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 4 | #include <acpi/acpi_gnvs.h> |
Julius Werner | 18ea2d3 | 2014-10-07 16:42:17 -0700 | [diff] [blame] | 5 | #include <soc/acpi.h> |
6 | #include <soc/nvs.h> | ||||
Aaron Durbin | c625d09 | 2013-10-04 16:00:07 -0500 | [diff] [blame] | 7 | |
Kyösti Mälkki | a9766c7 | 2020-06-29 02:56:49 +0300 | [diff] [blame] | 8 | void mainboard_fill_gnvs(struct global_nvs *gnvs) |
Aaron Durbin | c625d09 | 2013-10-04 16:00:07 -0500 | [diff] [blame] | 9 | { |
Aaron Durbin | c625d09 | 2013-10-04 16:00:07 -0500 | [diff] [blame] | 10 | /* Enable USB ports in S3 */ |
11 | gnvs->s3u0 = 1; | ||||
12 | gnvs->s3u1 = 1; | ||||
13 | |||||
Aaron Durbin | c625d09 | 2013-10-04 16:00:07 -0500 | [diff] [blame] | 14 | /* TPM Present */ |
15 | gnvs->tpmp = 1; | ||||
16 | |||||
Duncan Laurie | 4acd3c0 | 2013-12-10 07:48:00 -0800 | [diff] [blame] | 17 | /* Enable DPTF */ |
Duncan Laurie | 4acd3c0 | 2013-12-10 07:48:00 -0800 | [diff] [blame] | 18 | gnvs->dpte = 1; |
Aaron Durbin | c625d09 | 2013-10-04 16:00:07 -0500 | [diff] [blame] | 19 | } |
20 | |||||
Kyösti Mälkki | 02fd15d | 2020-06-02 03:34:43 +0300 | [diff] [blame] | 21 | void mainboard_fill_fadt(acpi_fadt_t *fadt) |
Kyösti Mälkki | 315710a | 2020-05-30 18:33:40 +0300 | [diff] [blame] | 22 | { |
23 | fadt->preferred_pm_profile = PM_MOBILE; | ||||
24 | } |