coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smihandler.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <types.h>
4
#include <
cpu/x86/smm.h
>
5
#include "
superio.h
"
6
7
void
mainboard_smi_sleep
(
u8
slp_typ)
8
{
9
if
(slp_typ > 0 && slp_typ < 4) {
10
/* Enable GRN_LED [Power LED] fading */
11
SUPERIO_UNLOCK
;
12
SUPERIO_WRITE
(0xf7, 0x68);
13
SUPERIO_LOCK
;
14
}
15
}
mainboard_smi_sleep
void __weak mainboard_smi_sleep(u8 slp_typ)
Definition:
smihandler.c:210
smm.h
u8
uint8_t u8
Definition:
stdint.h:45
superio.h
SUPERIO_WRITE
#define SUPERIO_WRITE(reg, data)
Definition:
superio.h:27
SUPERIO_UNLOCK
#define SUPERIO_UNLOCK
Definition:
superio.h:18
SUPERIO_LOCK
#define SUPERIO_LOCK
Definition:
superio.h:23
src
mainboard
intel
dcp847ske
smihandler.c
Generated by
1.9.1