Add support for storing POST codes in CMOS
This will use 3 bytes of CMOS to keep track of the POST code for the current boot while also leaving a record of the previous boot. The active bank is switched early in the bootblock. Test: 1) clear cmos 2) reboot 3) use "mosys nvram dump" to verify that the first byte contains 0x80 and the second byte contains 0xF8 4) powerd_suspend and then resume 5) use "mosys nvram dump" to verify that the first byte contains 0x81 and the second byte contains 0xFD Change-Id: I1ee6bb2dac053018f3042ab5a0b26c435dbfd151 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/1743 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
31409617a4
commit
b6e97b19ae
@@ -373,5 +373,23 @@ config CONSOLE_POST
|
||||
usually displayed using a so-called "POST card" ISA/PCI/PCI-E
|
||||
device) on the debug console.
|
||||
|
||||
config CMOS_POST
|
||||
bool "Store post codes in CMOS for debugging"
|
||||
depends on !NO_POST
|
||||
default n
|
||||
help
|
||||
If enabled, coreboot will store post codes in CMOS and switch between
|
||||
two offsets on each boot so the last post code in the previous boot
|
||||
can be retrieved. This uses 3 bytes of CMOS.
|
||||
|
||||
config CMOS_POST_OFFSET
|
||||
hex "Offset into CMOS to store POST codes"
|
||||
depends on CMOS_POST
|
||||
default 0
|
||||
help
|
||||
If CMOS_POST is enabled then an offset into CMOS must be provided.
|
||||
If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value
|
||||
defined in the mainboard option table.
|
||||
|
||||
endmenu
|
||||
|
||||
|
Reference in New Issue
Block a user