Debian Codegraph @

src/soc/intel/broadwell/pei_data.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <console/streams.h>
4 #include <device/device.h>
5 #include <soc/iomap.h>
6 #include <soc/pei_data.h>
7 #include <soc/pei_wrapper.h>
8 #include <soc/intel/broadwell/chip.h>
9 #include <static.h>
10
11 static void ABI_X86 send_to_console(unsigned char b)
12 {
13 console_tx_byte(b);
14 }
15
16 void broadwell_fill_pei_data(struct pei_data *pei_data)
17 {
18 const struct soc_intel_broadwell_config *cfg = config_of_soc();
19
20 pei_data->pei_version = PEI_VERSION;
21 pei_data->board_type = BOARD_TYPE_ULT;
22 pei_data->usbdebug = CONFIG(USBDEBUG);
23 pei_data->pciexbar = CONFIG_ECAM_MMCONF_BASE_ADDRESS;
24 pei_data->smbusbar = CONFIG_FIXED_SMBUS_IO_BASE;
25 pei_data->ehcibar = CONFIG_EHCI_BAR;
26 pei_data->xhcibar = 0xd7000000;
27 pei_data->gttbar = 0xe0000000;
28 pei_data->pmbase = ACPI_BASE_ADDRESS;
29 pei_data->gpiobase = GPIO_BASE_ADDRESS;
30 pei_data->tseg_size = CONFIG_SMM_TSEG_SIZE;
31 pei_data->temp_mmio_base = 0xfed08000;
32 pei_data->ec_present = cfg->ec_present,
33 pei_data->dq_pins_interleaved = cfg->dq_pins_interleaved,
34 pei_data->tx_byte = &send_to_console;
35 pei_data->ddr_refresh_2x = 1;
36 }