| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <acpi/acpi_gnvs.h> |
| 4 | #include <boardid.h> |
| 5 | #include <soc/nvs.h> |
| 6 | #include <soc/device_nvs.h> |
| 7 | |
| 8 | void mainboard_fill_gnvs(struct global_nvs *gnvs) |
| 9 | { |
| 10 | /* Enable USB ports in S3 */ |
| 11 | gnvs->s3u0 = 1; |
| 12 | gnvs->s3u1 = 1; |
| 13 | |
| 14 | /* Disable PMIC I2C port for ACPI for all boards except cyan */ |
| 15 | struct device_nvs *dev_nvs = acpi_get_device_nvs(); |
| 16 | if (!CONFIG(BOARD_GOOGLE_CYAN)) |
| 17 | dev_nvs->lpss_en[LPSS_NVS_I2C2] = 0; |
| 18 | |
| 19 | gnvs->bdid = board_id(); |
| 20 | } |