Refactor publishing CBMEM addresses through coreboot table.

We need to provide u-boot access to several different CBMEM
sections. To do that, a common coreboot table structure is used,
just different tags match different coreboot table sections.

Also, the code is added to export CBMEM console and MRC cache
addresses through the same mechanism.

Change-Id: I63adb67093b8b50ee61b0deb0b56ebb2c4856895
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/724
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Vadim Bendebury
2011-10-03 14:58:57 -07:00
committed by Stefan Reinauer
parent 2e43867a20
commit 22c0468d39
2 changed files with 34 additions and 16 deletions

View File

@@ -196,11 +196,13 @@ struct lb_framebuffer {
};
#define LB_TAG_TIMESTAMPS 0x0016
struct lb_tstamp {
#define LB_TAG_CBMEM_CONSOLE 0x0017
#define LB_TAG_MRC_CACHE 0x0018
struct lb_cbmem_ref {
uint32_t tag;
uint32_t size;
void *tstamp_tab;
void *cbmem_addr;
};
/* The following structures are for the cmos definitions table */