summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2020-10-26 10:15:42 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2020-10-28 19:41:51 +0000
commite4e08f2bfe24aaf320273b71d99fb4c6d675f64b (patch)
treed9e02b008ae992fa90d6b3639fcb437ddfa0b075 /util
parent65d0ef7cbd42bd377079a0ec16eb0c21dbf3a0ff (diff)
ifdtool: add "reserved" regions
This will let you at least dump / add these regions. Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Change-Id: I195ba5e93823603e712cd16cecbb48141302bed6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46822 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'util')
-rw-r--r--util/ifdtool/ifdtool.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index 220c140417..93f6f3feca 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -1642,7 +1642,7 @@ static void print_usage(const char *name)
" -V | --newvalue The new value to write into PCH strap specified by -S\n"
" -v | --version: print the version\n"
" -h | --help: print this help\n\n"
- "<region> is one of Descriptor, BIOS, ME, GbE, Platform\n"
+ "<region> is one of Descriptor, BIOS, ME, GbE, Platform, res1, res2, res3\n"
"\n");
}
@@ -1732,6 +1732,12 @@ int main(int argc, char *argv[])
region_type = 3;
else if (!strcasecmp("Platform", region_type_string))
region_type = 4;
+ else if (!strcasecmp("res1", region_type_string))
+ region_type = 5;
+ else if (!strcasecmp("res2", region_type_string))
+ region_type = 6;
+ else if (!strcasecmp("res3", region_type_string))
+ region_type = 7;
else if (!strcasecmp("EC", region_type_string))
region_type = 8;
if (region_type == -1) {