ifdtool: port the feature to set AltMeDisable/HAP bit here
commitb3e15a2895c43f52b12506f4f9a6de678c753dea
authorBill XIE <persmule@gmail.com>
Thu, 7 Sep 2017 10:34:50 +0000 (7 18:34 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 14 Aug 2018 16:05:25 +0000 (14 16:05 +0000)
treef25f37bb90c6e8589ff32206c6650c0aabcd2154
parentcea31ea5eb9b634019afb3d9531aeef38dd226ba
ifdtool: port the feature to set AltMeDisable/HAP bit here

Port the newest feature of me_cleaner to ifdtool
(https://github.com/corna/me_cleaner/ , Discussed in
https://github.com/corna/me_cleaner/issues/53 ) to
set AltMeDisable (or HAP for skylake/ME11) bit to the
IFD to disable ME.

In this commit I use (ifd_version >= IFD_VERSION_2) to
judge whether HAP instead AltMeDisable should be set,
since this condition is only fulfilled on skylake
or newer platforms.

This feature needs to guess ich revision, which needs
guess_ich_chipset() from flashrom to be ported here.

Routines to dump those bits are also added.

Change-Id: I9a2ecc60cfbb9ee9d96f15be3d53226cb428729a
Signed-off-by: Bill XIE <persmule@gmail.com>
Reviewed-on: https://review.coreboot.org/21437
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
util/ifdtool/ifdtool.c
util/ifdtool/ifdtool.h