AGESA: Implement POSTCAR_STAGE

Move all boards that have moved away from AGESA_LEGACY_WRAPPER
or BINARYPI_LEGACY_WRAPPER to use POSTCAR_STAGE.

We use POSTCAR_STAGE as a conditional in CAR teardown to tell
our MTRR setup is prepared such that invalidation without
writeback is a valid operation.

Change-Id: I3f4e2170054bdb84c72d2f7c956f8d51a6d7f0ca
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/21384
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Kyösti Mälkki
2017-09-02 16:41:43 +03:00
parent 8bf978c2aa
commit 63fac81fc8
22 changed files with 213 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
#define _AGESA_HELPER_H_
#include <stddef.h>
#include <arch/cpu.h>
enum {
PICK_DMI, /* DMI Interface */
@@ -53,5 +54,7 @@ void EmptyHeap(void);
#define HIGH_MEMORY_SCRATCH 0x30000
void fixup_cbmem_to_UC(int s3resume);
void recover_postcar_frame(struct postcar_frame *pcf, int s3resume);
#endif /* _AGESA_HELPER_H_ */

View File

@@ -35,5 +35,6 @@ romstage-y += ../agesa/def_callouts.c ../agesa/eventlog.c
ramstage-y += ../agesa/def_callouts.c ../agesa/eventlog.c ../agesa/acpi_tables.c
romstage-y += ramtop.c
postcar-y += ramtop.c
ramstage-y += ramtop.c
endif