Felix Held | 2421de6 | 2021-03-26 01:13:53 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <amdblocks/apob_cache.h> |
| 4 | #include <amdblocks/memmap.h> |
| 5 | #include <console/uart.h> |
| 6 | #include <fsp/api.h> |
| 7 | |
| 8 | void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version) |
| 9 | { |
| 10 | FSP_M_CONFIG *mcfg = &mupd->FspmConfig; |
| 11 | |
| 12 | mupd->FspmArchUpd.NvsBufferPtr = (uintptr_t)soc_fill_apob_cache(); |
| 13 | |
| 14 | mcfg->pci_express_base_addr = CONFIG_MMCONF_BASE_ADDRESS; |
| 15 | mcfg->tseg_size = CONFIG_SMM_TSEG_SIZE; |
| 16 | mcfg->bert_size = CONFIG_ACPI_BERT_SIZE; |
| 17 | mcfg->serial_port_base = uart_platform_base(CONFIG_UART_FOR_CONSOLE); |
| 18 | mcfg->serial_port_use_mmio = CONFIG(DRIVERS_UART_8250MEM); |
Felix Held | 2421de6 | 2021-03-26 01:13:53 +0100 | [diff] [blame] | 19 | mcfg->serial_port_baudrate = get_uart_baudrate(); |
| 20 | mcfg->serial_port_refclk = uart_platform_refclk(); |
| 21 | } |