| 1 |
|
| 2 |
|
| 3 |
#include <bootblock_common.h> |
| 4 |
#include <console/console.h> |
| 5 |
#include <fsp/util.h> |
| 6 |
#include <intelblocks/fast_spi.h> |
| 7 |
#include <intelblocks/tco.h> |
| 8 |
#include <soc/iomap.h> |
| 9 |
|
| 10 |
#include <FsptUpd.h> |
| 11 |
|
| 12 |
#include "bootblock.h" |
| 13 |
|
| 14 |
const FSPT_UPD temp_ram_init_params = { |
| 15 |
.FspUpdHeader = { |
| 16 |
.Signature = 0x545F445055434F53ULL, |
| 17 |
.Revision = 1, |
| 18 |
.Reserved = {0}, |
| 19 |
}, |
| 20 |
.FsptCoreUpd = { |
| 21 |
.MicrocodeRegionBase = 0, |
| 22 |
.MicrocodeRegionLength = 0, |
| 23 |
.CodeRegionBase = 0xffe00000, |
| 24 |
.CodeRegionLength = 0x200000, |
| 25 |
.Reserved1 = {0}, |
| 26 |
}, |
| 27 |
.ReservedTempRamInitUpd = {0}, |
| 28 |
.UnusedUpdSpace0 = {0}, |
| 29 |
.UpdTerminator = 0x55AA, |
| 30 |
}; |
| 31 |
|
| 32 |
asmlinkage void bootblock_c_entry(uint64_t base_timestamp) |
| 33 |
{ |
| 34 |
bootblock_main_with_basetime(base_timestamp); |
| 35 |
} |
| 36 |
|
| 37 |
void bootblock_soc_early_init(void) |
| 38 |
{ |
| 39 |
if (CONFIG(DRIVERS_UART)) |
| 40 |
early_uart_init(); |
| 41 |
} |
| 42 |
|
| 43 |
void bootblock_soc_init(void) |
| 44 |
{ |
| 45 |
if (CONFIG(BOOTBLOCK_CONSOLE)) |
| 46 |
printk(BIOS_DEBUG, "FSP TempRamInit successful...\n"); |
| 47 |
|
| 48 |
if (CONFIG(FSP_CAR)) |
| 49 |
report_fspt_output(); |
| 50 |
|
| 51 |
tco_configure(); |
| 52 |
tco_reset_status(); |
| 53 |
|
| 54 |
fast_spi_early_init(SPI_BASE_ADDRESS); |
| 55 |
} |