aboutsummaryrefslogtreecommitdiff
path: root/src/soc/imgtec
diff options
context:
space:
mode:
authorIonela Voinescu <ionela.voinescu@imgtec.com>2015-05-26 13:51:31 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-06-10 22:21:03 +0200
commit11f33e48721d864fc575e4c1c76e69fdb50b9901 (patch)
tree8e36e1fac6cb169305cc7f0c454696f529dc50ce /src/soc/imgtec
parentb3932e4975dbd637aae6dba6035fbe2fbf205754 (diff)
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)
Diffstat (limited to 'src/soc/imgtec')
-rw-r--r--src/soc/imgtec/pistachio/romstage.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/imgtec/pistachio/romstage.c b/src/soc/imgtec/pistachio/romstage.c
index afa42a7eaf..d08be3360f 100644
--- a/src/soc/imgtec/pistachio/romstage.c
+++ b/src/soc/imgtec/pistachio/romstage.c
@@ -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();