soc/amd/genoa: Add Global NVS
Change-Id: I8d64236fc81e848503535db6f52e93328a60404c Signed-off-by: Varshit Pandya <pandyavarshit@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78391 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
parent
c5122f9f1c
commit
9acc572caa
|
@ -10,4 +10,6 @@ DefinitionBlock (
|
|||
ACPI_TABLE_CREATOR,
|
||||
0x00010001 /* OEM Revision */
|
||||
)
|
||||
{ /* Start of ASL file */
|
||||
#include <globalnvs.asl>
|
||||
} /* End of ASL file */
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/*
|
||||
* NOTE: The layout of the GNVS structure below must match the layout in
|
||||
* soc/amd/genoa/include/soc/nvs.h !!!
|
||||
*/
|
||||
|
||||
Field (GNVS, ByteAcc, NoLock, Preserve)
|
||||
{
|
||||
/* Miscellaneous */
|
||||
PM1I, 64, // 0x00 - 0x07 - System Wake Source - PM1 Index
|
||||
GPEI, 64, // 0x08 - 0x0f - GPE Wake Source
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
/* TODO: Check if this is still correct */
|
||||
|
||||
/*
|
||||
* NOTE: The layout of the global_nvs structure below must match the layout
|
||||
* in soc/soc/amd/genoa/acpi/globalnvs.asl !!!
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef AMD_GENOA_NVS_H
|
||||
#define AMD_GENOA_NVS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct __packed global_nvs {
|
||||
/* Miscellaneous */
|
||||
uint64_t pm1i; /* 0x00 - 0x07 - System Wake Source - PM1 Index */
|
||||
uint64_t gpei; /* 0x08 - 0x0f - GPE Wake Source */
|
||||
};
|
||||
|
||||
#endif /* AMD_GENOA_NVS_H */
|
Loading…
Reference in New Issue