util/ifdtool: add option to dump flashrom layout
Dump the Intel Flash Descriptor map in the format expected by flashrom's "layout" option. Example usage: Given a 4MB flash image vpx7654.bin that was generated by Intel's FITC tool for a 6-Series chipset... ./ifdtool --layout l.txt vpx7654.bin cat l.txt 00000000:00000fff fd 00180000:003fffff bios 00001000:0017ffff me 00fff000:00000fff gbe 00fff000:00000fff pd Change-Id: Ib740178ed6935b5f6e1dba1be674303f9f980429 Signed-off-by: Christopher Douglass <cdouglass.orion@gmail.com> Reviewed-on: http://review.coreboot.org/5306 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
970dd9c466
commit
03ce014cfc
@@ -20,6 +20,8 @@
|
||||
#include <stdint.h>
|
||||
#define IFDTOOL_VERSION "1.1"
|
||||
|
||||
#define LAYOUT_LINELEN 80
|
||||
|
||||
enum spi_frequency {
|
||||
SPI_FREQUENCY_20MHZ = 0,
|
||||
SPI_FREQUENCY_33MHZ = 1,
|
||||
@@ -109,3 +111,8 @@ typedef struct {
|
||||
typedef struct {
|
||||
int base, limit, size;
|
||||
} region_t;
|
||||
|
||||
struct region_name {
|
||||
char *pretty;
|
||||
char *terse;
|
||||
};
|
||||
|
Reference in New Issue
Block a user