Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013, Intel Corporation |
| 3 | * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com> |
| 4 | * |
| 5 | * SPDX-License-Identifier: Intel |
| 6 | */ |
| 7 | |
Bin Meng | 01223e3 | 2014-12-12 21:05:29 +0800 | [diff] [blame] | 8 | #include <common.h> |
Simon Glass | b93abfc | 2015-01-27 22:13:36 -0700 | [diff] [blame] | 9 | #include <asm/fsp/fsp_support.h> |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 10 | |
Bin Meng | 4a076fe | 2015-12-10 22:03:04 -0800 | [diff] [blame^] | 11 | void update_fsp_configs(struct fsp_config_data *config, |
| 12 | struct fspinit_rtbuf *rt_buf) |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 13 | { |
Bin Meng | 4a076fe | 2015-12-10 22:03:04 -0800 | [diff] [blame^] | 14 | /* Initialize runtime buffer for fsp_init() */ |
| 15 | rt_buf->common.stack_top = config->common.stack_top - 32; |
| 16 | rt_buf->common.boot_mode = config->common.boot_mode; |
| 17 | rt_buf->common.upd_data = &config->fsp_upd; |
| 18 | |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 19 | /* Override any UPD setting if required */ |
Bin Meng | 2922b3e | 2014-12-12 21:05:28 +0800 | [diff] [blame] | 20 | } |