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