summaryrefslogtreecommitdiffstats
path: root/src/soc/amd
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-01-12 23:11:54 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-01-13 23:36:46 +0000
commit71375621354b52f8e8d92ab320a04c563d7024da (patch)
treee9e390ce49c663d8814879cd929be0081942a1a5 /src/soc/amd
parent65d822e680c3009c8203216643ceee0b72194261 (diff)
downloadcoreboot-71375621354b52f8e8d92ab320a04c563d7024da.tar.gz
coreboot-71375621354b52f8e8d92ab320a04c563d7024da.tar.bz2
coreboot-71375621354b52f8e8d92ab320a04c563d7024da.zip
soc/amd/glinda: use common SMU S3/4/5 entry message code
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I62b15d59cc4a5f214e45c3995f651228b1ae6ea7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71900 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/glinda/Kconfig1
-rw-r--r--src/soc/amd/glinda/Makefile.inc1
-rw-r--r--src/soc/amd/glinda/smu.c19
3 files changed, 1 insertions, 20 deletions
diff --git a/src/soc/amd/glinda/Kconfig b/src/soc/amd/glinda/Kconfig
index 4db1193dfa3b..7b0b7365ddd1 100644
--- a/src/soc/amd/glinda/Kconfig
+++ b/src/soc/amd/glinda/Kconfig
@@ -65,6 +65,7 @@ config SOC_AMD_GLINDA
select SOC_AMD_COMMON_BLOCK_SMI # TODO: Check if this is still correct
select SOC_AMD_COMMON_BLOCK_SMM # TODO: Check if this is still correct
select SOC_AMD_COMMON_BLOCK_SMU # TODO: Check if this is still correct
+ select SOC_AMD_COMMON_BLOCK_SMU_SX_ENTRY # TODO: Check if this is still correct
select SOC_AMD_COMMON_BLOCK_SPI # TODO: Check if this is still correct
select SOC_AMD_COMMON_BLOCK_TSC_FAM17H_19H # TODO: Check if this is still correct
select SOC_AMD_COMMON_BLOCK_UART # TODO: Check if this is still correct
diff --git a/src/soc/amd/glinda/Makefile.inc b/src/soc/amd/glinda/Makefile.inc
index 76c6689681d0..3e5001152323 100644
--- a/src/soc/amd/glinda/Makefile.inc
+++ b/src/soc/amd/glinda/Makefile.inc
@@ -47,7 +47,6 @@ ramstage-y += xhci.c
smm-y += gpio.c
smm-y += smihandler.c
-smm-y += smu.c
smm-$(CONFIG_DEBUG_SMI) += uart.c
CPPFLAGS_common += -I$(src)/soc/amd/glinda/include
diff --git a/src/soc/amd/glinda/smu.c b/src/soc/amd/glinda/smu.c
deleted file mode 100644
index d8cd081bade5..000000000000
--- a/src/soc/amd/glinda/smu.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <console/console.h>
-#include <amdblocks/smu.h>
-#include <soc/smu.h>
-
-/* TODO: can this be made common? */
-
-/*
- * 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);
-}