binman: Add support for an x86 'reset' section
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:22:48 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commit2250ee6ee681564115d82f9f9c63497ccfb5fdd7
treeb991315ca7bfdbf6317f215aad47d2151e05ed6a
parent3da9ce8dd44399dfca4b0639101f5154dbbaa93f
binman: Add support for an x86 'reset' section

At present binman has a single entry type for the 16-bit code code needed
to start up an x86 processor. This entry is intended to include both the
reset vector itself as well as the code to move to 32-bit mode.

However this is not very flexible since in some cases other data needs to
be included at the top of the SPI flash, in between these two pieces. For
example Intel requires that a FIT (Firmware Image Table) pointer be placed
0x40 bytes before the end of the ROM.

To deal with this, add a new reset entry for just the reset vector. A
subsequent change will adjust the existing 'start16' entry.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/README.entries
tools/binman/etype/x86_reset16.py [new file with mode: 0644]
tools/binman/etype/x86_reset16_spl.py [new file with mode: 0644]
tools/binman/etype/x86_reset16_tpl.py [new file with mode: 0644]
tools/binman/ftest.py
tools/binman/test/144_x86_reset16.dts [new file with mode: 0644]
tools/binman/test/145_x86_reset16_spl.dts [new file with mode: 0644]
tools/binman/test/146_x86_reset16_tpl.dts [new file with mode: 0644]