coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smu.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
console/console.h
>
4
#include <
amdblocks/smu.h
>
5
#include <soc/smu.h>
6
7
/*
8
* Request the SMU to put system into S3, S4, or S5. On entry, SlpTyp determines S-State and
9
* SlpTypeEn gets set by the SMU. Function does not return if successful.
10
*/
11
void
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
}
SMC_MSG_S3ENTRY
@ SMC_MSG_S3ENTRY
Definition:
smu.h:14
smu_sx_entry
void smu_sx_entry(void)
Definition:
smu.c:11
smu.h
send_smu_message
enum cb_err send_smu_message(enum smu_message_id message_id, struct smu_payload *arg)
Definition:
smu.c:40
printk
#define printk(level,...)
Definition:
stdlib.h:16
console.h
BIOS_DEBUG
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition:
loglevel.h:128
smu_payload
Definition:
smu.h:12
smu_payload::msg
uint32_t msg[SMU_NUM_ARGS]
Definition:
smu.h:13
src
soc
amd
picasso
smu.c
Generated by
1.9.1