mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / common / nhlt.c
blob39baf016c2fd2547f250bf552ee10840f781c528
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi_gnvs.h>
4 #include <nhlt.h>
5 #include <soc/nvs.h>
7 uintptr_t nhlt_soc_serialize(struct nhlt *nhlt, uintptr_t acpi_addr)
9 return nhlt_soc_serialize_oem_overrides(nhlt, acpi_addr, NULL, NULL, 0);
12 uintptr_t nhlt_soc_serialize_oem_overrides(struct nhlt *nhlt,
13 uintptr_t acpi_addr, const char *oem_id, const char *oem_table_id,
14 uint32_t oem_revision)
16 struct global_nvs *gnvs;
18 gnvs = acpi_get_gnvs();
20 if (gnvs == NULL)
21 return acpi_addr;
23 /* Update NHLT GNVS Data */
24 gnvs->nhla = (uintptr_t)acpi_addr;
25 gnvs->nhll = nhlt_current_size(nhlt);
27 return nhlt_serialize_oem_overrides(nhlt, acpi_addr,
28 oem_id, oem_table_id, oem_revision);