mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 08:58:52 +09:00
![Bin Meng](/assets/img/avatar_default.png)
fsp_init() runtime buffer parameter might be different across different platforms. Move this to update_fsp_configs(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
21 lines
537 B
C
21 lines
537 B
C
/*
|
|
* Copyright (C) 2013, Intel Corporation
|
|
* Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: Intel
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/fsp/fsp_support.h>
|
|
|
|
void update_fsp_configs(struct fsp_config_data *config,
|
|
struct fspinit_rtbuf *rt_buf)
|
|
{
|
|
/* Initialize runtime buffer for fsp_init() */
|
|
rt_buf->common.stack_top = config->common.stack_top - 32;
|
|
rt_buf->common.boot_mode = config->common.boot_mode;
|
|
rt_buf->common.upd_data = &config->fsp_upd;
|
|
|
|
/* Override any UPD setting if required */
|
|
}
|