void bootblock_soc_init(void) { if (CONFIG(ENABLE_DEBUG_LED_SOC_INIT_ENTRY)) light_sd_led(); display_mtrrs(); }
asmlinkage void bootblock_c_entry(uint64_t base_timestamp) { if (CONFIG(ENABLE_DEBUG_LED_BOOTBLOCK_ENTRY)) light_sd_led(); bootblock_main_with_timestamp(base_timestamp, NULL, 0); }
asmlinkage void *car_stage_c_entry(void) { FSP_INFO_HEADER *fih; struct cache_as_ram_params car_params = {0}; void *top_of_stack; post_code(0x20); /* Copy the FSP binary into ESRAM */ memcpy((void *)CONFIG_FSP_ESRAM_LOC, (void *)CONFIG_FSP_LOC, 0x00040000); /* Locate the FSP header in ESRAM */ fih = find_fsp(CONFIG_FSP_ESRAM_LOC); if (IS_ENABLED(CONFIG_ENABLE_DEBUG_LED_FINDFSP)) light_sd_led(); /* Start the early verstage/romstage code */ post_code(0x2A); car_params.fih = fih; top_of_stack = cache_as_ram_main(&car_params); /* Initialize MTRRs and switch stacks after RAM initialized */ return top_of_stack; }
void bootblock_soc_early_init(void) { if (CONFIG(ENABLE_DEBUG_LED_SOC_EARLY_INIT_ENTRY)) light_sd_led(); /* Initialize the MTRRs */ reg_script_run(mtrr_init); /* Initialize the controllers */ reg_script_run_on_dev(I2CGPIO_BDF, i2c_gpio_controller_init); reg_script_run_on_dev(LPC_BDF, legacy_gpio_init); /* Enable the HSUART */ if (CONFIG(ENABLE_BUILTIN_HSUART0)) reg_script_run_on_dev(HSUART0_BDF, hsuart_init); if (CONFIG(ENABLE_BUILTIN_HSUART1)) reg_script_run_on_dev(HSUART1_BDF, hsuart_init); if (CONFIG(ENABLE_DEBUG_LED_SOC_EARLY_INIT_EXIT)) light_sd_led(); }