soc: Remove copyright notices
[coreboot.git] / src / soc / intel / common / nhlt.c
blob1a74d7d44c02dd6a1166ef66024cce394cbbe97f
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <cbmem.h>
16 #include <nhlt.h>
17 #include <soc/nvs.h>
19 uintptr_t nhlt_soc_serialize(struct nhlt *nhlt, uintptr_t acpi_addr)
21 return nhlt_soc_serialize_oem_overrides(nhlt, acpi_addr, NULL, NULL, 0);
24 uintptr_t nhlt_soc_serialize_oem_overrides(struct nhlt *nhlt,
25 uintptr_t acpi_addr, const char *oem_id, const char *oem_table_id,
26 uint32_t oem_revision)
28 global_nvs_t *gnvs;
30 gnvs = cbmem_find(CBMEM_ID_ACPI_GNVS);
32 if (gnvs == NULL)
33 return acpi_addr;
35 /* Update NHLT GNVS Data */
36 gnvs->nhla = (uintptr_t)acpi_addr;
37 gnvs->nhll = nhlt_current_size(nhlt);
39 return nhlt_serialize_oem_overrides(nhlt, acpi_addr,
40 oem_id, oem_table_id, oem_revision);