From 771806da4996ab6f1b6a920bbf9ba21fb9e45474 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 17 Oct 2022 13:52:19 -0600 Subject: console: Add an SoC-specific post-code call Add a post-code call that SoCs can hook to output or save in any way that is specific to that SoC. Signed-off-by: Martin Roth Change-Id: I0369e4362840d7506d301105d8e1e2fd865919f4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68545 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/console/post.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/console') diff --git a/src/console/post.c b/src/console/post.c index 1d99a2e9dd..35e87799a8 100644 --- a/src/console/post.c +++ b/src/console/post.c @@ -5,6 +5,7 @@ /* Write POST information */ void __weak arch_post_code(uint8_t value) { } +void __weak soc_post_code(uint8_t value) { } /* Some mainboards have very nice features beyond just a simple display. * They can override this function. @@ -18,6 +19,8 @@ void post_code(uint8_t value) for displaying POST so keep it first. */ arch_post_code(value); + soc_post_code(value); + if (CONFIG(CONSOLE_POST)) printk(BIOS_INFO, "POST: 0x%02x\n", value); -- cgit v1.2.3