libpayload: Add RAM code to sysinfo_t
This adds CB_TAG_RAM_CODE and an entry to sysinfo_t. BUG=chrome-os-partner:31728 BRANCH=none TEST=Built and booted on pinky w/ depthcharge patch and saw that /proc/device-tree/firmware/coreboot/ram-code contains correct value Signed-off-by: David Hendricks <dhendrix@chromium.org> Change-Id: I69ee1fc7bc09c9d1c387efe2d171c57e62cfaf3f Reviewed-on: https://chromium-review.googlesource.com/231132 Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
3e631c311d
commit
ca6d044f2e
3 changed files with 21 additions and 2 deletions
|
|
@ -239,6 +239,13 @@ struct cb_macs {
|
|||
struct mac_address mac_addrs[0];
|
||||
};
|
||||
|
||||
#define CB_TAG_RAM_CODE 0x0028
|
||||
struct cb_ram_code {
|
||||
uint32_t tag;
|
||||
uint32_t size;
|
||||
uint32_t ram_code;
|
||||
};
|
||||
|
||||
#define CB_TAG_CMOS_OPTION_TABLE 0x00c8
|
||||
struct cb_cmos_option_table {
|
||||
u32 tag;
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ struct sysinfo_t {
|
|||
void *mrc_cache;
|
||||
void *acpi_gnvs;
|
||||
u32 board_id;
|
||||
u32 ram_code;
|
||||
void *wifi_calibration;
|
||||
uint64_t ramoops_buffer;
|
||||
uint32_t ramoops_buffer_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue