blob: ec185c791e71bf3cd8fe03ef92cc50807d954ec5 [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
Kyösti Mälkkice39ba92020-01-04 16:15:50 +02004#include <post.h>
Kyösti Mälkki10bc8062020-01-04 11:58:50 +02005#include <stdint.h>
6#include <console/console.h>
7#include <arch/io.h>
8
9void arch_post_code(uint8_t value)
10{
11 if (CONFIG(POST_IO))
12 outb(value, CONFIG_POST_IO_PORT);
13
Maulik V Vaghelaa6d7c002020-01-12 00:50:57 +053014 if (CONFIG(CMOS_POST) && !ENV_SMM)
Kyösti Mälkki10bc8062020-01-04 11:58:50 +020015 cmos_post_code(value);
16}