From e4e08f2bfe24aaf320273b71d99fb4c6d675f64b Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 26 Oct 2020 10:15:42 -0700 Subject: [PATCH] ifdtool: add "reserved" regions This will let you at least dump / add these regions. Signed-off-by: Stefan Reinauer Change-Id: I195ba5e93823603e712cd16cecbb48141302bed6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46822 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- util/ifdtool/ifdtool.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" - " is one of Descriptor, BIOS, ME, GbE, Platform\n" + " 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) {