blob: 0aaf9b719039096e4c8c30e7c658f808e8c33085 [file] [log] [blame]
Patrick Georgi11f00792020-03-04 15:10:45 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Kyösti Mälkki10bc8062020-01-04 11:58:50 +02003
4#include <stdint.h>
5#include <console/console.h>
6#include <arch/io.h>
7
8void arch_post_code(uint8_t value)
9{
10 if (CONFIG(POST_IO))
11 outb(value, CONFIG_POST_IO_PORT);
12
Maulik V Vaghelaa6d7c002020-01-12 00:50:57 +053013 if (CONFIG(CMOS_POST) && !ENV_SMM)
Kyösti Mälkki10bc8062020-01-04 11:58:50 +020014 cmos_post_code(value);
15}