blob: 908cc3bd36ae348a77b27006d95607508b0f2de6 [file] [log] [blame]
Patrick Georgi11f00792020-03-04 15:10:45 +01001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkki10bc8062020-01-04 11:58:50 +02002
Elyes Haouasae1ca822022-10-07 10:02:38 +02003#include <arch/io.h>
4#include <console/console.h>
Kyösti Mälkkice39ba92020-01-04 16:15:50 +02005#include <post.h>
Kyösti Mälkki10bc8062020-01-04 11:58:50 +02006#include <stdint.h>
Kyösti Mälkki10bc8062020-01-04 11:58:50 +02007
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}