baytrail: snapshot power state in romstage
The memory reference code doesn't maintain some of
the registers which contain valuable information in order
to log correct reset and wake events in the eventlog. Therefore
snapshot the registers which matter in this area so that
they can be consumed by ramstage.
BUG=chrome-os-partner:24907
BRANCH=rambi,squawks
TEST=Did various resets/wakes with logging patch which
consumes this structure. Eventlog can pick up reset
events and power failures.
Change-Id: Id8d2d782dd4e1133113f5308c4ccfe79bc6d3e03
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/181982
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
bf8f85bfe6
commit
1197476ca8
4 changed files with 121 additions and 23 deletions
|
|
@ -72,6 +72,7 @@
|
|||
#define CBMEM_ID_CAR_GLOBALS 0xcac4e6a3
|
||||
#define CBMEM_ID_REFCODE 0x04efc0de
|
||||
#define CBMEM_ID_REFCODE_CACHE 0x4efc0de5
|
||||
#define CBMEM_ID_POWER_STATE 0x50535454
|
||||
#define CBMEM_ID_NONE 0x00000000
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue