mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
x86: fsp: Only FSP2 has INIT_PHASE_END_FIRMWARE
For FSP1, there is no such INIT_PHASE_END_FIRMWARE. Move board_final_cleanup() to fsp2 directory. Fixes: 7c73cea44290 ("x86: Notify the FSP of the 'end firmware' event") Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested on chromebook_coral, chromebook_samus, chromebook_link, minnowmax Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
02541601cb
commit
33e4ab31a9
@ -61,22 +61,6 @@ void board_final_init(void)
|
|||||||
debug("OK\n");
|
debug("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void board_final_cleanup(void)
|
|
||||||
{
|
|
||||||
u32 status;
|
|
||||||
|
|
||||||
/* TODO(sjg@chromium.org): This causes Linux to crash */
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* call into FspNotify */
|
|
||||||
debug("Calling into FSP (notify phase INIT_PHASE_END_FIRMWARE): ");
|
|
||||||
status = fsp_notify(NULL, INIT_PHASE_END_FIRMWARE);
|
|
||||||
if (status)
|
|
||||||
debug("fail, error code %x\n", status);
|
|
||||||
else
|
|
||||||
debug("OK\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
int fsp_save_s3_stack(void)
|
int fsp_save_s3_stack(void)
|
||||||
{
|
{
|
||||||
struct udevice *dev;
|
struct udevice *dev;
|
||||||
|
@ -6,8 +6,25 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
|
#include <asm/fsp/fsp_support.h>
|
||||||
|
|
||||||
int arch_fsp_init(void)
|
int arch_fsp_init(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void board_final_cleanup(void)
|
||||||
|
{
|
||||||
|
u32 status;
|
||||||
|
|
||||||
|
/* TODO(sjg@chromium.org): This causes Linux to crash */
|
||||||
|
return;
|
||||||
|
|
||||||
|
/* call into FspNotify */
|
||||||
|
debug("Calling into FSP (notify phase INIT_PHASE_END_FIRMWARE): ");
|
||||||
|
status = fsp_notify(NULL, INIT_PHASE_END_FIRMWARE);
|
||||||
|
if (status)
|
||||||
|
debug("fail, error code %x\n", status);
|
||||||
|
else
|
||||||
|
debug("OK\n");
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user