payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / facebook / fbg1701 / acpi_tables.c
blob3576455335fd750b8e1864c34df6a3d55a93d552
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <acpi/acpi_gnvs.h>
5 #include <soc/nvs.h>
6 #include <soc/device_nvs.h>
8 void mainboard_fill_gnvs(struct global_nvs *gnvs)
10 /* Enable USB ports in S3 */
11 gnvs->s3u0 = 1;
12 gnvs->s3u1 = 1;
14 /* Disable USB ports in S5 */
15 gnvs->s5u0 = 0;
16 gnvs->s5u1 = 0;
18 /* PMIC is configured in I2C1, hide it for the OS */
19 struct device_nvs *dev_nvs = acpi_get_device_nvs();
20 dev_nvs->lpss_en[LPSS_NVS_I2C2] = 0;
23 void mainboard_fill_fadt(acpi_fadt_t *fadt)
25 fadt->preferred_pm_profile = PM_MOBILE;
26 fadt->iapc_boot_arch &= ~ACPI_FADT_8042;