blob: 7ae3f3982f2081c7d8dcd97793bb8b688351bf57 [file] [log] [blame]
Tobias Diedrich7a952042017-12-03 10:09:28 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2017 Tobias Diedrich <ranma+coreboot@tdiedrich.de>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
9 * the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <types.h>
18#include <cpu/x86/smm.h>
19#include "superio.h"
20
21void mainboard_smi_sleep(u8 slp_typ)
22{
23 if (slp_typ > 0 && slp_typ < 4) {
24 /* Enable GRN_LED [Power LED] fading */
25 SUPERIO_UNLOCK;
26 SUPERIO_WRITE(0xf7, 0x68);
27 SUPERIO_LOCK;
28 }
29}