Debian Codegraph @

src/soc/intel/common/nhlt.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi_gnvs.h>
4 #include <nhlt.h>
5 #include <soc/nvs.h>
6
7 uintptr_t nhlt_soc_serialize(struct nhlt *nhlt, uintptr_t acpi_addr)
8 {
9 return nhlt_soc_serialize_oem_overrides(nhlt, acpi_addr, NULL, NULL, 0);
10 }
11
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)
15 {
16 struct global_nvs *gnvs;
17
18 gnvs = acpi_get_gnvs();
19
20 if (gnvs == NULL)
21 return acpi_addr;
22
23 /* Update NHLT GNVS Data */
24 gnvs->nhla = (uintptr_t)acpi_addr;
25 gnvs->nhll = nhlt_current_size(nhlt);
26
27 return nhlt_serialize_oem_overrides(nhlt, acpi_addr,
28 oem_id, oem_table_id, oem_revision);
29 }