drivers/intel/fsp2_0: separate component validation from loading
commita413e5e455136e6511fd9e5541ff4709d279f7a4
authorAaron Durbin <adurbin@chromium.org>
Mon, 18 Jul 2016 04:06:03 +0000 (17 23:06 -0500)
committerAaron Durbin <adurbin@chromium.org>
Tue, 19 Jul 2016 18:15:46 +0000 (19 20:15 +0200)
tree50da474fdb630251e224759620376862dc6b7f97
parentb4302504e3770001bf267e0a58fa4dc7f17f6871
drivers/intel/fsp2_0: separate component validation from loading

The current FSP component loading mechanism doesn't handle all the
requirements actually needed. Two things need to be added:
1. XIP support for MemoryInit component
2. Relocating SiliconInit component to not corrupt OS memory.

In order to accommodate those requirements the validation
and header initialization needs to be a separate function.
Therefore, provide fsp_validate_component() to help achieve those
requirements.

BUG=chrome-os-partner:52679

Change-Id: I53525498b250033f3187c05db248e07b00cc934d
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/15740
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/drivers/intel/fsp2_0/include/fsp/util.h
src/drivers/intel/fsp2_0/util.c