Angel Pons | 16f6aa8 | 2020-04-05 15:47:21 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Subrata Banik | 930c31c | 2019-11-01 18:12:58 +0530 | [diff] [blame] | 2 | |
| 3 | #include <bootblock_common.h> |
Angel Pons | 5d98dab | 2021-02-19 22:01:55 +0100 | [diff] [blame] | 4 | #include <intelblocks/fast_spi.h> |
Subrata Banik | 930c31c | 2019-11-01 18:12:58 +0530 | [diff] [blame] | 5 | #include <intelblocks/systemagent.h> |
Tim Wawrzynczak | bb50c67 | 2020-07-08 17:05:32 -0600 | [diff] [blame] | 6 | #include <intelblocks/tco.h> |
Subrata Banik | 930c31c | 2019-11-01 18:12:58 +0530 | [diff] [blame] | 7 | #include <intelblocks/uart.h> |
| 8 | #include <soc/bootblock.h> |
Subrata Banik | 930c31c | 2019-11-01 18:12:58 +0530 | [diff] [blame] | 9 | |
| 10 | asmlinkage void bootblock_c_entry(uint64_t base_timestamp) |
| 11 | { |
| 12 | /* Call lib/bootblock.c main */ |
| 13 | bootblock_main_with_basetime(base_timestamp); |
| 14 | } |
| 15 | |
| 16 | void bootblock_soc_early_init(void) |
| 17 | { |
| 18 | bootblock_systemagent_early_init(); |
| 19 | bootblock_pch_early_init(); |
Angel Pons | 5d98dab | 2021-02-19 22:01:55 +0100 | [diff] [blame] | 20 | fast_spi_cache_bios_region(); |
Subrata Banik | 930c31c | 2019-11-01 18:12:58 +0530 | [diff] [blame] | 21 | pch_early_iorange_init(); |
| 22 | if (CONFIG(INTEL_LPSS_UART_FOR_CONSOLE)) |
| 23 | uart_bootblock_init(); |
| 24 | } |
| 25 | |
| 26 | void bootblock_soc_init(void) |
| 27 | { |
| 28 | report_platform_info(); |
Alexey Buyanov | 1201696 | 2020-07-28 19:59:45 -0700 | [diff] [blame] | 29 | bootblock_pch_init(); |
Tim Wawrzynczak | bb50c67 | 2020-07-08 17:05:32 -0600 | [diff] [blame] | 30 | |
| 31 | /* Programming TCO_BASE_ADDRESS and TCO Timer Halt */ |
| 32 | tco_configure(); |
Subrata Banik | 930c31c | 2019-11-01 18:12:58 +0530 | [diff] [blame] | 33 | } |