CBMEM: Replace cbmem_initialize() with cbmem_recovery()

The replacement function confirms CBMEM TOC is wiped clean on power
cycles and resets. It also introduces compatibility interface to ease
up transition to DYNAMIC_CBMEM.

Change-Id: Ic5445c5bff4aff22a43821f3064f2df458b9f250
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/4668
Reviewed-by: Aaron Durbin <adurbin@google.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Kyösti Mälkki
2014-01-06 17:20:31 +02:00
parent 97e1b11f41
commit 2d8520b275
25 changed files with 70 additions and 43 deletions

View File

@@ -48,7 +48,7 @@ void main(unsigned long bist)
//print_pci_devices();
//dump_pci_devices();
cbmem_was_initted = !cbmem_initialize();
cbmem_was_initted = !cbmem_recovery(0);
timestamp_init(rdtsc());
timestamp_add_now(TS_START_ROMSTAGE);

View File

@@ -50,7 +50,7 @@ void main(unsigned long bist)
//print_pci_devices();
//dump_pci_devices();
cbmem_was_initted = !cbmem_initialize();
cbmem_was_initted = !cbmem_recovery(0);
timestamp_init(rdtsc());
timestamp_add_now(TS_START_ROMSTAGE);