util/ifdtool: Fix ICH Gbe unlock

With coreboot 4.4 switched to "Descriptor mode" for Lenovo T500
it automatically unlocks all flash regions. For Gbe region
the "Requester ID" was hardcoded resulting in *dead* Gbe.

Keep board specific "Requester ID" while unlocking Gbe region.

Allows Lenovo T500 to boot with IFD "Descriptor mode" with unlocked
flash regions.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>

Change-Id: Ia4b5d1928e84bee42182fc83020e3a13fadc93c4
Reviewed-on: https://review.coreboot.org/18055
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Patrick Rudolph 2017-01-08 09:57:47 +01:00 committed by Nico Huber
parent 4a282b8419
commit 8a06cc7ec8
1 changed files with 2 additions and 1 deletions

View File

@ -876,7 +876,8 @@ static void unlock_descriptor(char *filename, char *image, int size)
} else { } else {
fmba->flmstr1 = 0xffff0000; fmba->flmstr1 = 0xffff0000;
fmba->flmstr2 = 0xffff0000; fmba->flmstr2 = 0xffff0000;
fmba->flmstr3 = 0x08080118; /* Keep chipset specific Requester ID */
fmba->flmstr3 = 0x08080000 | (fmba->flmstr3 & 0xffff);
} }
write_image(filename, image, size); write_image(filename, image, size);