aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/psp/psp_def.h
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-04-01 22:06:39 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-04-16 23:17:09 +0000
commit43126edc3ae246d1dbd293550e29a9e2c378f424 (patch)
tree228f2cf086db0d3d4b52ec95ecc7e786b8550ce6 /src/soc/amd/common/block/psp/psp_def.h
parente8ffa9ffd3cf5cb9fcade12e1f1e0dea5fc3fcf2 (diff)
soc/amd/common/psp: Add notify_sx_info
Add the command to tell the PSP the system is going to a sleep state. BUG=b:153677737 Change-Id: I50da358e1f8438b46dbb1bda593becf6dd4549ea Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://chromium-review.googlesource.com/2020367 Reviewed-on: https://chromium-review.googlesource.com/2110764 Reviewed-on: https://chromium-review.googlesource.com/2121159 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40016 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc/amd/common/block/psp/psp_def.h')
-rw-r--r--src/soc/amd/common/block/psp/psp_def.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/soc/amd/common/block/psp/psp_def.h b/src/soc/amd/common/block/psp/psp_def.h
index 63ca3abb0a..7772ca6bda 100644
--- a/src/soc/amd/common/block/psp/psp_def.h
+++ b/src/soc/amd/common/block/psp/psp_def.h
@@ -9,18 +9,19 @@
#include <amdblocks/psp.h>
/* x86 to PSP commands */
-#define MBOX_BIOS_CMD_DRAM_INFO 0x01
-#define MBOX_BIOS_CMD_SMM_INFO 0x02
-#define MBOX_BIOS_CMD_SX_INFO 0x03
-#define MBOX_BIOS_CMD_RSM_INFO 0x04
-#define MBOX_BIOS_CMD_PSP_QUERY 0x05
-#define MBOX_BIOS_CMD_BOOT_DONE 0x06
-#define MBOX_BIOS_CMD_CLEAR_S3_STS 0x07
-#define MBOX_BIOS_CMD_S3_DATA_INFO 0x08
-#define MBOX_BIOS_CMD_NOP 0x09
-#define MBOX_BIOS_CMD_SMU_FW 0x19
-#define MBOX_BIOS_CMD_SMU_FW2 0x1a
-#define MBOX_BIOS_CMD_ABORT 0xfe
+#define MBOX_BIOS_CMD_DRAM_INFO 0x01
+#define MBOX_BIOS_CMD_SMM_INFO 0x02
+#define MBOX_BIOS_CMD_SX_INFO 0x03
+#define MBOX_BIOS_CMD_SX_INFO_SLEEP_TYPE_MAX 0x07
+#define MBOX_BIOS_CMD_RSM_INFO 0x04
+#define MBOX_BIOS_CMD_PSP_QUERY 0x05
+#define MBOX_BIOS_CMD_BOOT_DONE 0x06
+#define MBOX_BIOS_CMD_CLEAR_S3_STS 0x07
+#define MBOX_BIOS_CMD_S3_DATA_INFO 0x08
+#define MBOX_BIOS_CMD_NOP 0x09
+#define MBOX_BIOS_CMD_SMU_FW 0x19
+#define MBOX_BIOS_CMD_SMU_FW2 0x1a
+#define MBOX_BIOS_CMD_ABORT 0xfe
/* generic PSP interface status, v1 */
#define PSPV1_STATUS_INITIALIZED BIT(0)