Andrey Petrov | 662da6c | 2020-03-16 22:46:57 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrey Petrov | 662da6c | 2020-03-16 22:46:57 -0700 | [diff] [blame] | 2 | |
| 3 | #include <arch/romstage.h> |
Andrey Petrov | 662da6c | 2020-03-16 22:46:57 -0700 | [diff] [blame] | 4 | #include <intelblocks/rtc.h> |
| 5 | #include <soc/romstage.h> |
| 6 | #include <soc/soc_util.h> |
| 7 | |
| 8 | #include "chip.h" |
| 9 | |
| 10 | void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) |
| 11 | { |
| 12 | const config_t *config = config_of_soc(); |
| 13 | FSP_M_CONFIG *m_cfg = &mupd->FspmConfig; |
| 14 | |
| 15 | mupd->FspmUpdVersion = FSP_UPD_VERSION; |
| 16 | |
| 17 | // ErrorLevel - 0 (disable) to 8 (verbose) |
| 18 | m_cfg->PcdFspMrcDebugPrintErrorLevel = 0; |
| 19 | m_cfg->PcdFspKtiDebugPrintErrorLevel = 0; |
| 20 | |
| 21 | mainboard_memory_init_params(mupd); |
| 22 | |
| 23 | m_cfg->VTdConfig.VTdSupport = config->vtd_support; |
| 24 | m_cfg->VTdConfig.CoherencySupport = config->coherency_support; |
| 25 | m_cfg->VTdConfig.ATS = config->ats_support; |
| 26 | } |