tree: Use boolean for pch_hda_sdi_enable[]
[coreboot.git] / src / soc / intel / skylake / bootblock / bootblock.c
blob4b31f77e9d36ef1739fc533023caec7f1f69fffa
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <bootblock_common.h>
4 #include <cpu/cpu.h>
5 #include <intelblocks/fast_spi.h>
6 #include <intelblocks/systemagent.h>
7 #include <intelblocks/tco.h>
8 #include <intelblocks/uart.h>
9 #include <soc/bootblock.h>
10 #include <stdint.h>
12 asmlinkage void bootblock_c_entry(uint64_t base_timestamp)
14 /* Call lib/bootblock.c main */
15 bootblock_main_with_basetime(base_timestamp);
18 void bootblock_soc_early_init(void)
20 bootblock_systemagent_early_init();
21 bootblock_pch_early_init();
22 fast_spi_cache_bios_region();
23 pch_early_iorange_init();
25 if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE))
26 uart_bootblock_init();
29 void bootblock_soc_init(void)
32 * Perform early chipset initialization before fsp memory init
33 * example: pirq->irq programming, enabling smbus, set pmcbase
34 * and abase, i2c programming and print platform info
36 report_platform_info();
37 bootblock_pch_init();
39 /* Program TCO_BASE_ADDRESS and TCO Timer Halt */
40 tco_configure();