f70bd99d2a
unused includes of <stdin.h> found using following commande: diff <(git grep -l '#include <stdint.h>' -- src/) <(git grep -l 'int8_t\|uint8_t\|int16_t\|uint16_t\|int32_t\|uint32_t\|int64_t\| uint64_t\|intptr_t\|uintptr_t\|intmax_t\|uintmax_t\|s8\|u8\|s16\| u16\|s32\|u32\|s64\|u64\|INT8_MIN\|INT8_MAX\|UINT8_MAX\|INT16_MIN\ |INT16_MAX\|UINT16_MAX\|INT32_MIN\|INT32_MAX\|UINT32_MAX\|INT64_MIN\ |INT64_MAX\|UINT64_MAX\|INTMAX_MIN\|INTMAX_MAX\|UINTMAX_MAX' -- src/) |grep '<' |grep -v vendor |grep -vF '.h' Change-Id: Icb9b54c6abfb18d1e263665981968a4d7cccabeb Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41148 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
29 lines
842 B
C
29 lines
842 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <console/streams.h>
|
|
#include <soc/iomap.h>
|
|
#include <soc/pei_data.h>
|
|
#include <soc/pei_wrapper.h>
|
|
|
|
static void ABI_X86 send_to_console(unsigned char b)
|
|
{
|
|
console_tx_byte(b);
|
|
}
|
|
|
|
void broadwell_fill_pei_data(struct pei_data *pei_data)
|
|
{
|
|
pei_data->pei_version = PEI_VERSION;
|
|
pei_data->board_type = BOARD_TYPE_ULT;
|
|
pei_data->usbdebug = CONFIG(USBDEBUG);
|
|
pei_data->pciexbar = MCFG_BASE_ADDRESS;
|
|
pei_data->smbusbar = SMBUS_BASE_ADDRESS;
|
|
pei_data->ehcibar = EARLY_EHCI_BAR;
|
|
pei_data->xhcibar = EARLY_XHCI_BAR;
|
|
pei_data->gttbar = EARLY_GTT_BAR;
|
|
pei_data->pmbase = ACPI_BASE_ADDRESS;
|
|
pei_data->gpiobase = GPIO_BASE_ADDRESS;
|
|
pei_data->tseg_size = CONFIG_SMM_TSEG_SIZE;
|
|
pei_data->temp_mmio_base = EARLY_TEMP_MMIO;
|
|
pei_data->tx_byte = &send_to_console;
|
|
pei_data->ddr_refresh_2x = 1;
|
|
}
|