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.
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
)
30 gnvs
= cbmem_find(CBMEM_ID_ACPI_GNVS
);
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
);