blob: b9cd26b50a19bc1b0315498418c922ac8d096612 [file] [log] [blame]
Kyösti Mälkki10bc8062020-01-04 11:58:50 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; version 2 of
7 * the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include <stdint.h>
16#include <console/console.h>
17#include <arch/io.h>
18
19void arch_post_code(uint8_t value)
20{
21 if (CONFIG(POST_IO))
22 outb(value, CONFIG_POST_IO_PORT);
23
Maulik V Vaghelaa6d7c002020-01-12 00:50:57 +053024 if (CONFIG(CMOS_POST) && !ENV_SMM)
Kyösti Mälkki10bc8062020-01-04 11:58:50 +020025 cmos_post_code(value);
26}