diff options
author | Aaron Durbin <adurbin@chromium.org> | 2013-10-24 10:11:08 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-01-28 19:54:57 +0100 |
commit | bf18b17cf3dc5957de0356a82bffd395504447fc (patch) | |
tree | b5cd20d95e860e873e0e0d63f77cfe89a226e3b3 /src | |
parent | 3674ccfa3ef9fe9317bc9f9b7231e3b55452f1c4 (diff) |
cbmem: add reference code ids
In order to identify the ram used in cbmem for
reference code blobs add common ids to be consumed
by downstream users.
BUG=chrome-os-partner:22866
BRANCH=None
TEST=Built and booted with ref code support. Noted reference
code entries in cbmem.
Change-Id: Iae3f0c2c1ffdb2eb0e82a52ee459d25db44c1904
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/174424
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/4896
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/include/cbmem.h | 2 | ||||
-rw-r--r-- | src/lib/cbmem_info.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/include/cbmem.h b/src/include/cbmem.h index 9e894a9494..9e68ba92f4 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -59,6 +59,8 @@ #define CBMEM_ID_VBOOT_HANDOFF 0x780074f0 #define CBMEM_ID_CAR_GLOBALS 0xcac4e6a3 #define CBMEM_ID_EHCI_DEBUG 0xe4c1deb9 +#define CBMEM_ID_REFCODE 0x04efc0de +#define CBMEM_ID_REFCODE_CACHE 0x4efc0de5 #define CBMEM_ID_NONE 0x00000000 #define CBMEM_ID_AGESA_RUNTIME 0x41474553 #define CBMEM_ID_HOB_POINTER 0x484f4221 diff --git a/src/lib/cbmem_info.c b/src/lib/cbmem_info.c index a60761f7b0..de43c667a8 100644 --- a/src/lib/cbmem_info.c +++ b/src/lib/cbmem_info.c @@ -49,6 +49,8 @@ static struct cbmem_id_to_name { { CBMEM_ID_CAR_GLOBALS, "CAR GLOBALS" }, { CBMEM_ID_AGESA_RUNTIME, "AGESA RSVD " }, { CBMEM_ID_EHCI_DEBUG, "USBDEBUG " }, + { CBMEM_ID_REFCODE, "REFCODE " }, + { CBMEM_ID_REFCODE_CACHE, "REFCODE $ " }, }; void cbmem_print_entry(int n, u32 id, u64 base, u64 size) |