blob: 381edd0761587b21747b33ee874f92c0f9f02f88 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: Intel
Bin Meng2922b3e2014-12-12 21:05:28 +08002/*
3 * Copyright (C) 2013, Intel Corporation
4 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
Bin Meng2922b3e2014-12-12 21:05:28 +08005 */
6
Bin Meng01223e32014-12-12 21:05:29 +08007#include <common.h>
Simon Glass6c34fc12019-09-25 08:00:11 -06008#include <asm/fsp1/fsp_support.h>
Bin Meng2922b3e2014-12-12 21:05:28 +08009
Simon Glass13724142019-09-25 08:11:25 -060010void fsp_update_configs(struct fsp_config_data *config,
Bin Meng4a076fe2015-12-10 22:03:04 -080011 struct fspinit_rtbuf *rt_buf)
Bin Meng2922b3e2014-12-12 21:05:28 +080012{
Bin Meng4a076fe2015-12-10 22:03:04 -080013 /* Initialize runtime buffer for fsp_init() */
14 rt_buf->common.stack_top = config->common.stack_top - 32;
15 rt_buf->common.boot_mode = config->common.boot_mode;
16 rt_buf->common.upd_data = &config->fsp_upd;
17
Bin Meng2922b3e2014-12-12 21:05:28 +080018 /* Override any UPD setting if required */
Bin Meng2922b3e2014-12-12 21:05:28 +080019}