coreboot-kgpe-d16/src/drivers
Aaron Durbin 789f2b6c43 fsp1_1: provide binding to UEFI version
FSP has some unique attributes which makes integration
cumbersome:

1. FSP header files do not include the types they need. Like
   EDKII development it's expected types are provided by the
   build system. Therefore, one needs to include the proper
   files to avoid compilation issues.
2. An implementation of FSP for a chipset may use different
   versions of the UEFI PI spec implementation. EDKII is a
   proxy for all of UEFI specifications. In order to provide
   flexibility one needs to binding a set of types and
   structures from an UEFI PI implementation.
3. Each chipset FSP 1.1 implementation has a FspUpdVpd.h
   file which defines it's own types. Commonality between
   FSP chipset implementations are only named typedef
   structs. The fields within are not consistent. And
   because of FSP's insistence on typedefs it makes it
   near impossible to forward declare structs.

The above 3 means one needs to include the correct UEFI
type bindings when working with FSP. The current
implementation had the SoC picking include paths in the
edk2 directory and using a bare <uefi_types.h> include.
Also, with the prior fsp_util.h implementation the SoC's
FSP FspUpdVpd.h header file was required since for providing
all the types at once (Generic FSP 1.1 and SoC types).

The binding has been changed in the following manner:
1. CONFIG_UEFI_2_4_BINDING option added which FSP 1.1
   selects. No other bindings are currently available,
   but this provides the policy.
2. Based on CONFIG_UEFI_2_4_BINDING the proper include
   paths are added to the CPPFLAGS_common.
3. SoC Makefile.inc does not bind UEFI types nor does
   it adjust CPPFLAGS_common in any way.
4. Provide a include/fsp directory under fsp1_1 and
   expose src/drivers/intel/fsp1_1/include in the
   include path. This split can allow a version 2,
   for example, FSP to provide its own include files.
   Yes, that means there needs to be consistency in
   APIs, however that's not this patch.
5. Provide a way for code to differentiate the FSP spec
   types (fsp/api.h) from the chipset FSP types
   (fsp/soc_binding.h). This allows for code re-use that
   doesn't need the chipset types to be defined such as
   the FSP relocation code.

BUG=chrome-os-partner:44827
BRANCH=None
TEST=Built and booted on glados.

Signed-off-by: Aaron Durbin <adubin@chromium.org>

Change-Id: I894165942cfe36936e186af5221efa810be8bb29
Reviewed-on: http://review.coreboot.org/11606
Reviewed-by: Duncan Laurie <dlaurie@google.com>
Tested-by: build bot (Jenkins)
2015-09-10 17:52:28 +00:00
..
ams Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
ati x86: Change MMIO addr in readN(addr)/writeN(addr, val) to pointer 2015-02-15 08:50:22 +01:00
dec Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
elog Verify Kconfigs symbols are not zero for hex and int type symbols 2015-07-12 19:06:44 +02:00
emulation qemu: fix vga driver build 2015-09-05 15:48:03 +00:00
generic Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
gic Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
i2c Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
ics Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
intel fsp1_1: provide binding to UEFI version 2015-09-10 17:52:28 +00:00
ipmi Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
lenovo Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
maxim Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
net drivers/net/ne2k.c: Fix regression 2014-11-22 15:25:09 +01:00
parade Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
pc80 drivers/pc80: Do not initialize PS2 keyboard by default 2015-09-09 16:47:48 +00:00
ricoh Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
sil Fix some minor Kconfig issues 2015-04-28 20:49:12 +02:00
spi Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
ti Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
trident Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
uart uart8250mem: provide uart_fill_lb() 2015-08-13 16:12:30 +02:00
usb cbmem: add indicator to hooks if cbmem is being recovered 2015-06-09 22:03:30 +02:00
xgi Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
xpowers drivers/xpowers/axp209: Adapt to new I²C API 2015-02-20 23:20:56 +01:00