cbmem: Export ACPI GNVS cbmem pointer in coreboot table

This will make it possible for payloads to find the ACPI
NVS region which is needed to get base addresses for devices
that are in ACPI mode.

BUG=chrome-os-partner:24380
BRANCH=none
TEST=build and boot rambi with emmc in ACPI mode

Change-Id: Ia67b66ee8bd45ab8270444bbb2802080d31d14eb
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179849
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5015
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Duncan Laurie 2013-12-12 10:43:21 -08:00 committed by Aaron Durbin
parent d37705c3b0
commit 16e899ba94
2 changed files with 3 additions and 1 deletions

View File

@ -225,6 +225,7 @@ struct lb_vdat {
#define LB_TAG_TIMESTAMPS 0x0016 #define LB_TAG_TIMESTAMPS 0x0016
#define LB_TAG_CBMEM_CONSOLE 0x0017 #define LB_TAG_CBMEM_CONSOLE 0x0017
#define LB_TAG_MRC_CACHE 0x0018 #define LB_TAG_MRC_CACHE 0x0018
#define LB_TAG_ACPI_GNVS 0x0024
struct lb_cbmem_ref { struct lb_cbmem_ref {
uint32_t tag; uint32_t tag;
uint32_t size; uint32_t size;

View File

@ -264,7 +264,8 @@ static void add_cbmem_pointers(struct lb_header *header)
int table_tag; int table_tag;
} section_ids[] = { } section_ids[] = {
{CBMEM_ID_TIMESTAMP, LB_TAG_TIMESTAMPS}, {CBMEM_ID_TIMESTAMP, LB_TAG_TIMESTAMPS},
{CBMEM_ID_CONSOLE, LB_TAG_CBMEM_CONSOLE} {CBMEM_ID_CONSOLE, LB_TAG_CBMEM_CONSOLE},
{CBMEM_ID_ACPI_GNVS, LB_TAG_ACPI_GNVS},
}; };
int i; int i;