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 | |
| 3 | #include <types.h> |
Furquan Shaikh | 76cedd2 | 2020-05-02 10:24:23 -0700 | [diff] [blame] | 4 | #include <acpi/acpi.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 | #include <cpu/x86/msr.h> |
| 7 | |
Julien Viard de Galbert | cf2b72f | 2018-04-05 11:24:45 +0200 | [diff] [blame] | 8 | #include <intelblocks/acpi.h> |
Julien Viard de Galbert | 4f13640 | 2018-02-16 14:40:53 +0100 | [diff] [blame] | 9 | #include <soc/acpi.h> |
| 10 | #include <soc/nvs.h> |
| 11 | |
| 12 | extern const unsigned char AmlCode[]; |
| 13 | |
| 14 | void acpi_create_gnvs(global_nvs_t *gnvs) |
| 15 | { |
| 16 | acpi_init_gnvs(gnvs); |
| 17 | |
| 18 | /* Disable USB ports in S5 */ |
| 19 | gnvs->s5u0 = 0; |
| 20 | gnvs->s5u1 = 0; |
| 21 | |
| 22 | /* TPM Present */ |
| 23 | gnvs->tpmp = 0; |
| 24 | } |
Kyösti Mälkki | 1edf8b7 | 2020-05-30 13:46:45 +0300 | [diff] [blame^] | 25 | |
| 26 | void motherboard_fill_fadt(acpi_fadt_t *fadt) |
| 27 | { |
| 28 | fadt->preferred_pm_profile = PM_ENTERPRISE_SERVER; |
| 29 | } |