soc/intel/alderlake: Add ADL-P 4+4 with 28W TDP
[coreboot.git] / src / console / post.c
blobf3a146318fd9584140bf3096bdbbfe8f2438d6ad
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <stdint.h>
6 /* Write POST information */
7 void __weak arch_post_code(uint8_t value) { }
8 void __weak soc_post_code(uint8_t value) { }
10 /* Some mainboards have very nice features beyond just a simple display.
11 * They can override this function.
13 void __weak mainboard_post(uint8_t value) { }
15 void post_code(uint8_t value)
17 if (!CONFIG(NO_POST)) {
18 /* Assume this to be the most reliable and simplest type
19 for displaying POST so keep it first. */
20 arch_post_code(value);
22 soc_post_code(value);
24 if (CONFIG(CONSOLE_POST))
25 printk(BIOS_INFO, "POST: 0x%02x\n", value);
27 mainboard_post(value);