cbtable: describe boot media
This allows finding the currently used CBFS (in case there are several), and avoids the need to define flash size when building the payload. Change-Id: I4b00159610077761c501507e136407e9ae08c73e Signed-off-by: Aaron Durbin <adurbin@chromium.org> Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10867 Tested-by: build bot (Jenkins)
This commit is contained in:
committed by
Patrick Georgi
parent
3ac3c4ebac
commit
fb5d5b16ee
@ -297,6 +297,17 @@ struct lb_spi_flash {
|
||||
uint32_t erase_cmd;
|
||||
};
|
||||
|
||||
#define LB_TAG_BOOT_MEDIA_PARAMS 0x0030
|
||||
struct lb_boot_media_params {
|
||||
uint32_t tag;
|
||||
uint32_t size;
|
||||
/* offsets are relative to start of boot media */
|
||||
uint64_t fmap_offset;
|
||||
uint64_t cbfs_offset;
|
||||
uint64_t cbfs_size;
|
||||
uint64_t boot_media_size;
|
||||
};
|
||||
|
||||
#define LB_TAG_SERIALNO 0x002a
|
||||
#define MAX_SERIALNO_LENGTH 32
|
||||
|
||||
|
Reference in New Issue
Block a user