summaryrefslogtreecommitdiff
path: root/src/soc/amd/sabrina/smu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/sabrina/smu.c')
-rw-r--r--src/soc/amd/sabrina/smu.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/amd/sabrina/smu.c b/src/soc/amd/sabrina/smu.c
new file mode 100644
index 0000000000..dd83713fbd
--- /dev/null
+++ b/src/soc/amd/sabrina/smu.c
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/* TODO: Check if this is still correct */
+
+#include <console/console.h>
+#include <amdblocks/smu.h>
+#include <soc/smu.h>
+
+/*
+ * Request the SMU to put system into S3, S4, or S5. On entry, SlpTyp determines S-State and
+ * SlpTypeEn gets set by the SMU. Function does not return if successful.
+ */
+void smu_sx_entry(void)
+{
+ struct smu_payload msg = { 0 }; /* Unused for SMC_MSG_S3ENTRY */
+
+ printk(BIOS_DEBUG, "SMU: Put system into S3/S4/S5\n");
+ send_smu_message(SMC_MSG_S3ENTRY, &msg);
+}