summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-12-10 22:03:04 -0800
committerBin Meng <bmeng.cn@gmail.com>2016-01-13 12:20:14 +0800
commit214feec1c56d0c0f69bdcc677ad75683ed4f7661 (patch)
treeb293b041e76e37d1a2a586465bf2bf13bc15f751 /arch/x86/lib
parent4ce022d396dd293f40b08f05886c21469feb74ea (diff)
downloadu-boot-imx-214feec1c56d0c0f69bdcc677ad75683ed4f7661.zip
u-boot-imx-214feec1c56d0c0f69bdcc677ad75683ed4f7661.tar.gz
u-boot-imx-214feec1c56d0c0f69bdcc677ad75683ed4f7661.tar.bz2
x86: fsp: Set up init runtime buffer in update_fsp_configs()
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>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/fsp/fsp_support.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c
index d86a511..875c96a 100644
--- a/arch/x86/lib/fsp/fsp_support.c
+++ b/arch/x86/lib/fsp/fsp_support.c
@@ -144,13 +144,8 @@ void fsp_init(u32 stack_top, u32 boot_mode, void *nvs_buf)
memset(&rt_buf, 0, sizeof(struct fspinit_rtbuf));
- /* Initialize runtime buffer for fsp_init() */
- rt_buf.common.stack_top = stack_top - 32;
- rt_buf.common.boot_mode = boot_mode;
- rt_buf.common.upd_data = fsp_upd;
-
/* Override any configuration if required */
- update_fsp_configs(&config_data);
+ update_fsp_configs(&config_data, &rt_buf);
memset(&params, 0, sizeof(struct fsp_init_params));
params.nvs_buf = nvs_buf;