From 537b4e09e644107ed644cd88f8a7fd488406b9a2 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 19 Jun 2012 12:56:57 -0700 Subject: Add code to read Intel microcode from CBFS When CONFIG_MICROCODE_IN_CBFS is enabled, find the microcode blob in CBFS and pass it to intel_update_microcode() instead of using the compiled in array. CBFS accesses in pre-RAM and 'normal' environments are provided through different API. Change-Id: I35c1480edf87e550a7b88c4aadf079cf3ff86b5d Signed-off-by: Vadim Bendebury Reviewed-on: http://review.coreboot.org/1296 Tested-by: build bot (Jenkins) --- src/cpu/intel/model_206ax/bootblock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cpu/intel/model_206ax/bootblock.c') diff --git a/src/cpu/intel/model_206ax/bootblock.c b/src/cpu/intel/model_206ax/bootblock.c index 62d9b4edeb..4061bb7b5a 100644 --- a/src/cpu/intel/model_206ax/bootblock.c +++ b/src/cpu/intel/model_206ax/bootblock.c @@ -23,9 +23,11 @@ #include #include +#if !CONFIG_MICROCODE_IN_CBFS static const uint32_t microcode_updates[] = { #include "microcode_blob.h" }; +#endif #include @@ -61,5 +63,9 @@ static void enable_rom_caching(void) static void bootblock_cpu_init(void) { enable_rom_caching(); +#if CONFIG_MICROCODE_IN_CBFS + intel_update_microcode_from_cbfs(); +#else intel_update_microcode(microcode_updates); +#endif } -- cgit v1.2.3