summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-01-09 10:33:23 -0600
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-13 16:11:04 +0200
commit00bf3dbf350b48e78aab413958ec83692d8fa263 (patch)
tree541da4fed8c8e33967a5fc389496dfb23b51e563 /src/lib
parent1ea9bde5af87fa786147773fcf2ee3faa7861945 (diff)
downloadcoreboot-00bf3dbf350b48e78aab413958ec83692d8fa263.tar.xz
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> Reviewed-on: http://review.coreboot.org/5032 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbmem_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/cbmem_info.c b/src/lib/cbmem_info.c
index 42348e4d21..49724d6e28 100644
--- a/src/lib/cbmem_info.c
+++ b/src/lib/cbmem_info.c
@@ -52,6 +52,7 @@ static struct cbmem_id_to_name {
{ CBMEM_ID_REFCODE, "REFCODE " },
{ CBMEM_ID_SMM_SAVE_SPACE, "SMM BACKUP " },
{ CBMEM_ID_REFCODE_CACHE, "REFCODE $ " },
+ { CBMEM_ID_POWER_STATE, "POWER STATE" },
{ CBMEM_ID_RAM_OOPS, "RAMOOPS " },
};