• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /*
4  * NOTE: The layout of the global_nvs structure below must match the layout
5  * in soc/soc/amd/stoneyridge/acpi/globalnvs.asl !!!
6  *
7  */
8 
9 #ifndef __SOC_STONEYRIDGE_NVS_H__
10 #define __SOC_STONEYRIDGE_NVS_H__
11 
12 #include <stdint.h>
13 #include <soc/southbridge.h>
14 
15 struct __packed global_nvs {
16 	/* Miscellaneous */
17 	uint64_t	pm1i; /* 0x00 - 0x07 - System Wake Source - PM1 Index */
18 	uint64_t	gpei; /* 0x08 - 0x0f - GPE Wake Source */
19 	uint8_t		tmps; /* 0x10 - Temperature Sensor ID */
20 	uint8_t		tcrt; /* 0x11 - Critical Threshold */
21 	uint8_t		tpsv; /* 0x12 - Passive Threshold */
22 	uint8_t		pad1[13];
23 	aoac_devs_t	aoac; /* 0x20 - AOAC device enables */
24 	uint16_t	fw00; /* 0x24 - XhciFwRomAddr_Rom, Boot RAM */
25 	uint16_t	fw02; /* 0x26 - XhciFwRomAddr_Ram, Instr RAM */
26 	uint32_t	fw01; /* 0x28 - XhciFwRamAddr_Rom, Boot RAM sz/base */
27 	uint32_t	fw03; /* 0x2c - XhciFwRomAddr_Ram, Instr RAM sz/base */
28 	uint32_t	eh10; /* 0x30 - EHCI BAR */
29 };
30 
31 #endif /* __SOC_STONEYRIDGE_NVS_H__ */
32