pistachio: initialize cbmem area to be empty

Use cbmem_initialize_empty() after DDR configuration so that
cbmem is always initialized from scratch on each boot.

Change-Id: Ic9ca34867b26aab82cf3154280694b6fb61ee11f
Signed-off-by: Ionela Voinescu <ionela.voinescu@imgtec.com>
Reviewed-on: http://review.coreboot.org/10458
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Ionela Voinescu 2015-05-26 13:51:31 +01:00 committed by Patrick Georgi
parent b3932e4975
commit 11f33e4872
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,7 @@
* Foundation, Inc.
*/
#include <cbmem.h>
#include <program_loading.h>
#include <console/console.h>
#include <halt.h>
@ -30,6 +31,12 @@ void main(void)
error = init_ddr2();
if (!error) {
/*
* When romstage is running it's always on the reboot path and
* never a resume path where cbmem recovery is required.
* Therefore, always initialize the cbmem area to be empty.
*/
cbmem_initialize_empty();
run_ramstage();
}
halt();