amd/gardenia: Init cbmem in romstage

Change-Id: I6ede71ec660678bb5f77693a9095aa0f198e4e26
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/19752
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Marshall Dawson 2017-05-15 11:02:41 -06:00 committed by Martin Roth
parent f5c3518f0e
commit 2185798019
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,7 @@
#include <arch/acpi.h> #include <arch/acpi.h>
#include <arch/io.h> #include <arch/io.h>
#include <arch/stages.h> #include <arch/stages.h>
#include <cbmem.h>
#include <cpu/x86/lapic.h> #include <cpu/x86/lapic.h>
#include <cpu/x86/bist.h> #include <cpu/x86/bist.h>
#include <cpu/amd/car.h> #include <cpu/amd/car.h>
@ -62,7 +63,11 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
post_code(0x40); post_code(0x40);
AGESAWRAPPER(amdinitpost); AGESAWRAPPER(amdinitpost);
post_code(0x41); post_code(0x41);
cbmem_initialize_empty();
post_code(0x42);
AGESAWRAPPER(amdinitenv); AGESAWRAPPER(amdinitenv);
/* TODO: Disable cache is not ok. */ /* TODO: Disable cache is not ok. */
disable_cache_as_ram(); disable_cache_as_ram();