Angel Pons | 60ec365 | 2020-04-03 01:22:13 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Tobias Diedrich | 7a95204 | 2017-12-03 10:09:28 +0100 | [diff] [blame] | 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 | } |