Angel Pons | f94ac9a | 2020-04-05 15:46:48 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 3 | |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 4 | #include <stdint.h> |
Stefan Reinauer | d548e5c | 2015-01-05 14:27:46 -0800 | [diff] [blame] | 5 | #include <console/streams.h> |
Julius Werner | 4ee4bd5 | 2014-10-20 13:46:39 -0700 | [diff] [blame] | 6 | #include <soc/iomap.h> |
| 7 | #include <soc/pei_data.h> |
| 8 | #include <soc/pei_wrapper.h> |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 9 | |
| 10 | static void ABI_X86 send_to_console(unsigned char b) |
| 11 | { |
| 12 | console_tx_byte(b); |
| 13 | } |
| 14 | |
| 15 | void broadwell_fill_pei_data(struct pei_data *pei_data) |
| 16 | { |
| 17 | pei_data->pei_version = PEI_VERSION; |
| 18 | pei_data->board_type = BOARD_TYPE_ULT; |
Kyösti Mälkki | fd15955 | 2019-03-20 18:46:30 +0200 | [diff] [blame] | 19 | pei_data->usbdebug = CONFIG(USBDEBUG); |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 20 | pei_data->pciexbar = MCFG_BASE_ADDRESS; |
| 21 | pei_data->smbusbar = SMBUS_BASE_ADDRESS; |
| 22 | pei_data->ehcibar = EARLY_EHCI_BAR; |
| 23 | pei_data->xhcibar = EARLY_XHCI_BAR; |
| 24 | pei_data->gttbar = EARLY_GTT_BAR; |
| 25 | pei_data->pmbase = ACPI_BASE_ADDRESS; |
| 26 | pei_data->gpiobase = GPIO_BASE_ADDRESS; |
Kyösti Mälkki | 8f09688d | 2019-08-15 11:29:15 +0300 | [diff] [blame] | 27 | pei_data->tseg_size = CONFIG_SMM_TSEG_SIZE; |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 28 | pei_data->temp_mmio_base = EARLY_TEMP_MMIO; |
| 29 | pei_data->tx_byte = &send_to_console; |
Duncan Laurie | daf6d41 | 2015-01-05 10:47:00 -0800 | [diff] [blame] | 30 | pei_data->ddr_refresh_2x = 1; |
Duncan Laurie | c88c54c | 2014-04-30 16:36:13 -0700 | [diff] [blame] | 31 | } |