From 218579801928e65128c59ddfaa13b99f8f067663 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Mon, 15 May 2017 11:02:41 -0600 Subject: amd/gardenia: Init cbmem in romstage Change-Id: I6ede71ec660678bb5f77693a9095aa0f198e4e26 Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/19752 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/amd/gardenia/romstage.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainboard/amd') diff --git a/src/mainboard/amd/gardenia/romstage.c b/src/mainboard/amd/gardenia/romstage.c index cd90494702..471d63248e 100644 --- a/src/mainboard/amd/gardenia/romstage.c +++ b/src/mainboard/amd/gardenia/romstage.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -62,7 +63,11 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) post_code(0x40); AGESAWRAPPER(amdinitpost); + post_code(0x41); + cbmem_initialize_empty(); + + post_code(0x42); AGESAWRAPPER(amdinitenv); /* TODO: Disable cache is not ok. */ disable_cache_as_ram(); -- cgit v1.2.3