1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi_gnvs.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();
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
);