blob: 1496957117ee9f47f389d4811c4970aae505561a [file] [log] [blame]
Marshall Dawson5c5049e2020-04-23 06:43:44 -06001/* SPDX-License-Identifier: GPL-2.0-only */
2
Marshall Dawson5c5049e2020-04-23 06:43:44 -06003#include <console/console.h>
Felix Held60a46432020-11-12 00:14:16 +01004#include <amdblocks/smu.h>
Marshall Dawson5c5049e2020-04-23 06:43:44 -06005#include <soc/smu.h>
Marshall Dawson5c5049e2020-04-23 06:43:44 -06006
7/*
8 * Request the SMU to put system into S3, S4, or S5. On entry, SlpTyp determines S-State and
Felix Held60a46432020-11-12 00:14:16 +01009 * SlpTypeEn gets set by the SMU. Function does not return if successful.
Marshall Dawson5c5049e2020-04-23 06:43:44 -060010 */
11void smu_sx_entry(void)
12{
13 struct smu_payload msg = { 0 }; /* Unused for SMC_MSG_S3ENTRY */
14
15 printk(BIOS_DEBUG, "SMU: Put system into S3/S4/S5\n");
16 send_smu_message(SMC_MSG_S3ENTRY, &msg);
17}