summaryrefslogtreecommitdiff
path: root/util/ifdtool
diff options
context:
space:
mode:
Diffstat (limited to 'util/ifdtool')
-rw-r--r--util/ifdtool/ifdtool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index 99a83e5d12..191b3216de 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -1451,6 +1451,10 @@ static void lock_descriptor(const char *filename, char *image, int size)
fmba->flmstr5 |= (1 << REGION_EC) << rd_shift;
fmba->flmstr5 |= (1 << REGION_EC) << wr_shift;
}
+ if (check_region(frba, REGION_DEV_EXP2)) {
+ /* BIOS can read SPI device expansion 2 region. */
+ fmba->flmstr1 |= (1 << REGION_DEV_EXP2) << rd_shift;
+ }
break;
case PLATFORM_DNV:
case PLATFORM_WBG: