cpu/intel/microcode: Have API to re-load microcode patch

This patch introduces a newer API to reload the microcode patch when
SoC selects RELOAD_MICROCODE_PATCH config.

Expected to call this API being independent of CPU MP Init regular
flow hence, doesn't regress the boot time.

BUG=b:233199592
TEST=Build and boot google/kano to ChromeOS.

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: If480e44b88d04e5cb25d7104961b70f7be041a23
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65156
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Subrata Banik
2022-06-15 21:24:13 +05:30
committed by Felix Held
parent d36aca5e22
commit bd0aef0f2a
2 changed files with 36 additions and 0 deletions

View File

@@ -4,6 +4,10 @@
#include <stdint.h>
/* Find the microcode and reload the microcode if SoC has RELOAD_MICROCODE_PATCH
* config selected. */
void intel_reload_microcode(void);
void intel_update_microcode_from_cbfs(void);
/* Find a microcode that matches the revision and platform family returning
* NULL if none found. The found microcode is cached for faster access on