Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: Intel |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013, Intel Corporation |
| 4 | * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
Bin Meng | 01223e3 | 2014-12-12 21:05:29 +0800 | [diff] [blame] | 7 | #include <common.h> |
Simon Glass | 6c34fc1 | 2019-09-25 08:00:11 -0600 | [diff] [blame] | 8 | #include <asm/fsp1/fsp_support.h> |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 9 | |
Simon Glass | 1372414 | 2019-09-25 08:11:25 -0600 | [diff] [blame^] | 10 | void fsp_update_configs(struct fsp_config_data *config, |
Bin Meng | 4a076fe | 2015-12-10 22:03:04 -0800 | [diff] [blame] | 11 | struct fspinit_rtbuf *rt_buf) |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 12 | { |
Bin Meng | 4a076fe | 2015-12-10 22:03:04 -0800 | [diff] [blame] | 13 | /* 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 Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 18 | /* Override any UPD setting if required */ |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 19 | } |