summaryrefslogtreecommitdiff
path: root/util/ifdtool/ifdtool.h
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@intel.com>2016-10-31 19:31:54 -0700
committerMartin Roth <martinroth@google.com>2016-11-08 23:11:29 +0100
commit96ecb7790587e458d8991d7c091c87ef53f2b67e (patch)
tree3a31c39d4175c67a9afd7195af25ef57d31c9646 /util/ifdtool/ifdtool.h
parent8a3514d0aebd0839ab848d45618db3b4a253e1ab (diff)
downloadcoreboot-96ecb7790587e458d8991d7c091c87ef53f2b67e.tar.xz
ifdtool: Add option to specify platform (-p) quirks
Apollo Lake uses yet another descriptor format where only two masters are used: CPU/BIOS and CSE/TXE. CSE stores data in a region number 5 that has not been used previously and CPU must not write it. Add quirk (-p aplk) that locks descriptor according to recommended values. BUG=chrome-os-partner:58974 TEST=ifdtool -p aplk -l bios.bin; ifdtool -d bios.bin.new. Make sure FLMSTR1 and FLMSTR2 are set correctly. unlock with -l and make sure FLMSTRs are restored. Change-Id: I3f33372bef3ff75d0e34030694c79cd07d5540de Signed-off-by: Andrey Petrov <andrey.petrov@intel.com> Reviewed-on: https://review.coreboot.org/17202 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/ifdtool/ifdtool.h')
-rw-r--r--util/ifdtool/ifdtool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ifdtool/ifdtool.h b/util/ifdtool/ifdtool.h
index 78787126ea..fe98d6a856 100644
--- a/util/ifdtool/ifdtool.h
+++ b/util/ifdtool/ifdtool.h
@@ -21,6 +21,10 @@ enum ifd_version {
IFD_VERSION_2,
};
+enum platform {
+ PLATFORM_APOLLOLAKE
+};
+
#define LAYOUT_LINELEN 80
enum spi_frequency {