Angel Pons | b04c2f8 | 2020-04-03 01:23:20 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Julien Viard de Galbert | 4f13640 | 2018-02-16 14:40:53 +0100 | [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> |
Julien Viard de Galbert | 4f13640 | 2018-02-16 14:40:53 +0100 | [diff] [blame] | 5 | #include <device/device.h> |
Julien Viard de Galbert | 4f13640 | 2018-02-16 14:40:53 +0100 | [diff] [blame] | 6 | |
Julien Viard de Galbert | cf2b72f | 2018-04-05 11:24:45 +0200 | [diff] [blame] | 7 | #include <intelblocks/acpi.h> |
Julien Viard de Galbert | 4f13640 | 2018-02-16 14:40:53 +0100 | [diff] [blame] | 8 | #include <soc/acpi.h> |
| 9 | #include <soc/nvs.h> |
| 10 | |
| 11 | extern const unsigned char AmlCode[]; |
| 12 | |
Kyösti Mälkki | 0c1dd9c | 2020-06-17 23:37:49 +0300 | [diff] [blame] | 13 | void acpi_create_gnvs(struct global_nvs *gnvs) |
Julien Viard de Galbert | 4f13640 | 2018-02-16 14:40:53 +0100 | [diff] [blame] | 14 | { |
| 15 | acpi_init_gnvs(gnvs); |
| 16 | |
| 17 | /* Disable USB ports in S5 */ |
| 18 | gnvs->s5u0 = 0; |
| 19 | gnvs->s5u1 = 0; |
| 20 | |
| 21 | /* TPM Present */ |
| 22 | gnvs->tpmp = 0; |
| 23 | } |
Kyösti Mälkki | 1edf8b7 | 2020-05-30 13:46:45 +0300 | [diff] [blame] | 24 | |
Kyösti Mälkki | 02fd15d | 2020-06-02 03:34:43 +0300 | [diff] [blame] | 25 | void mainboard_fill_fadt(acpi_fadt_t *fadt) |
Kyösti Mälkki | 1edf8b7 | 2020-05-30 13:46:45 +0300 | [diff] [blame] | 26 | { |
| 27 | fadt->preferred_pm_profile = PM_ENTERPRISE_SERVER; |
| 28 | } |