drivers/intel/fsp2_0/memory_init: Wrap calls into FSP
commit40beb36f073430b0efebf0c11b51fe46065fcaf0
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Tue, 1 Dec 2020 09:08:38 +0000 (1 10:08 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Sat, 5 Dec 2020 08:19:34 +0000 (5 08:19 +0000)
tree45b9ab7f5fa349777f633e7ab9085f11b61cad4d
parent7a359497cd83babdc5d3244a390cb775412105e6
drivers/intel/fsp2_0/memory_init: Wrap calls into FSP

Use a wrapper code that does nothing on x86_32, but drops to protected
mode to call into FSP when running on x86_64.

Tested on Intel Skylake when running in long mode. Successfully run the
FSP-M which is compiled for x86_32 and then continued booting in
long mode.

Change-Id: I9fb37019fb0d04f74d00733ce2e365f484d97d66
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48202
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/drivers/intel/fsp2_0/memory_init.c
src/drivers/intel/fsp2_0/notify.c
src/drivers/intel/fsp2_0/silicon_init.c