AMD K8/fam10: Fix CBMEM on S3 resume

Change to use cbmem_recovery() to wipe CBMEM region and reset
ACPI wakeup if CBMEM TOC was not found.

Change-Id: Ic362253eaa00bd442d4cc0514632f9096e20bfa6
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/4673
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
Kyösti Mälkki 2014-01-12 14:38:33 +02:00
parent 47770c0769
commit fa8cedae2a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ static inline void *backup_resume(void) {
if (!suspend) if (!suspend)
return NULL; return NULL;
if (!cbmem_reinit()) if (cbmem_recovery(1))
return NULL; return NULL;
resume_backup_memory = cbmem_find(CBMEM_ID_RESUME); resume_backup_memory = cbmem_find(CBMEM_ID_RESUME);