diff options
author | Martin Roth <gaumless@gmail.com> | 2022-12-31 16:40:58 -0700 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-01-07 03:31:41 +0000 |
commit | fbd13a84cf0d02a42188c00cf68f40b2b00af9d0 (patch) | |
tree | 8488558ef29cc76228c3e539b613c65836b8c2e3 /src/vendorcode/google | |
parent | 4c3014feb276cd14ce4fbea4f75d7b0952841cf3 (diff) |
vc/google: Add and use POST_CODE_CLEAR definition
The CR50 code clears the post code value. Add this as a #define.
Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: If3b73a3159ac8ac9ab08c6ff705b0ca289ab453c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71592
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jon Murphy <jpmurphy@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/vendorcode/google')
-rw-r--r-- | src/vendorcode/google/chromeos/cr50_enable_update.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vendorcode/google/chromeos/cr50_enable_update.c b/src/vendorcode/google/chromeos/cr50_enable_update.c index 9ac33a52b4..6beea913ca 100644 --- a/src/vendorcode/google/chromeos/cr50_enable_update.c +++ b/src/vendorcode/google/chromeos/cr50_enable_update.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <bootstate.h> +#include <commonlib/console/post_codes.h> #include <console/console.h> #include <ec/google/chromeec/ec.h> #include <elog.h> @@ -133,7 +134,7 @@ static void enable_update(void *unused) mainboard_prepare_cr50_reset(); /* clear current post code avoid chatty eventlog on subsequent boot*/ - post_code(0); + post_code(POST_CODE_CLEAR); /* * Older Cr50 firmware doesn't support the timeout parameter for the |