On Mon, Oct 21, 2019 at 11:40 AM Simon Glass <sjg@chromium.org> wrote: > > With FSP2 we need to run silicon init early after relocation. Add a new > hook for this. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > Changes in v3: None > Changes in v2: None > > common/board_r.c | 3 +++ > include/init.h | 11 +++++++++++ > 2 files changed, 14 insertions(+) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/common/board_r.c b/common/board_r.c index e0f3eb325aa..e6fda426eeb 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -703,6 +703,9 @@ static init_fnc_t init_sequence_r[] = { efi_memory_init, #endif initr_binman, +#ifdef CONFIG_FSP_VERSION2 + arch_fsp_init_r, +#endif stdio_init_tables, initr_serial, initr_announce, diff --git a/include/init.h b/include/init.h index afc953d51e2..43602029bc1 100644 --- a/include/init.h +++ b/include/init.h @@ -65,6 +65,17 @@ int mach_cpu_init(void); */ int arch_fsp_init(void); +/** + * arch_fsp_init() - perform post-relocation firmware support package init + * + * Where U-Boot relies on binary blobs to handle part of the system init, this + * function can be used to set up the blobs. This is used on some Intel + * platforms. + * + * Return: 0 + */ +int arch_fsp_init_r(void); + int dram_init(void); /**
With FSP2 we need to run silicon init early after relocation. Add a new hook for this. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v3: None Changes in v2: None common/board_r.c | 3 +++ include/init.h | 11 +++++++++++ 2 files changed, 14 insertions(+)