Kyösti Mälkki | 10bc806 | 2020-01-04 11:58:50 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 19 | void arch_post_code(uint8_t value) |
| 20 | { |
| 21 | if (CONFIG(POST_IO)) |
| 22 | outb(value, CONFIG_POST_IO_PORT); |
| 23 | |
Maulik V Vaghela | a6d7c00 | 2020-01-12 00:50:57 +0530 | [diff] [blame^] | 24 | if (CONFIG(CMOS_POST) && !ENV_SMM) |
Kyösti Mälkki | 10bc806 | 2020-01-04 11:58:50 +0200 | [diff] [blame] | 25 | cmos_post_code(value); |
| 26 | } |