2020-08-04 10:04:03 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
|
|
|
#include <bootblock_common.h>
|
2021-02-19 22:01:55 +01:00
|
|
|
#include <intelblocks/fast_spi.h>
|
2020-08-04 10:04:03 +02:00
|
|
|
#include <intelblocks/systemagent.h>
|
|
|
|
#include <intelblocks/tco.h>
|
|
|
|
#include <intelblocks/uart.h>
|
|
|
|
#include <soc/bootblock.h>
|
|
|
|
|
|
|
|
asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
|
|
|
|
{
|
|
|
|
/* Call lib/bootblock.c main */
|
|
|
|
bootblock_main_with_basetime(base_timestamp);
|
|
|
|
}
|
|
|
|
|
|
|
|
void bootblock_soc_early_init(void)
|
|
|
|
{
|
|
|
|
bootblock_systemagent_early_init();
|
|
|
|
bootblock_pch_early_init();
|
2021-02-19 22:01:55 +01:00
|
|
|
fast_spi_cache_bios_region();
|
2020-08-04 10:04:03 +02:00
|
|
|
pch_early_iorange_init();
|
|
|
|
if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE))
|
|
|
|
uart_bootblock_init();
|
|
|
|
}
|
|
|
|
|
|
|
|
void bootblock_soc_init(void)
|
|
|
|
{
|
|
|
|
report_platform_info();
|
2020-09-09 08:39:43 +02:00
|
|
|
bootblock_pch_init();
|
2020-08-04 10:04:03 +02:00
|
|
|
|
|
|
|
/* Programming TCO_BASE_ADDRESS and TCO Timer Halt */
|
|
|
|
tco_configure();
|
|
|
|
}
|