blob: 0a20babae189a918c7c46e984863b44bb1fd8554 [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
24 if (CONFIG(CMOS_POST))
25 cmos_post_code(value);
26}