![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdbool.h>
Go to the source code of this file.
Functions | |
int | get_write_protect_state (void) |
Only used if CONFIG(CHROMEOS) is set. More... | |
int | get_recovery_mode_switch (void) |
HACK: Use Fn-Key as recovery mode switch. More... | |
int | get_recovery_mode_retrain_switch (void) |
int | clear_recovery_mode_switch (void) |
int | get_wipeout_mode_switch (void) |
int | get_lid_switch (void) |
int | get_ec_is_trusted (void) |
int | display_init_required (void) |
int | gfx_get_init_done (void) |
void | gfx_set_init_done (int done) |
int | platform_is_resuming (void) |
int clear_recovery_mode_switch | ( | void | ) |
Definition at line 53 of file switches.c.
References EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT, EC_HOST_EVENT_MASK, elog_add_recovery_mode_switch_event(), and google_chromeec_clear_events_b().
Referenced by do_clear_recovery_mode_switch().
int display_init_required | ( | void | ) |
Definition at line 22 of file bootmode.c.
References CONFIG, dead_code, and vboot_get_context().
Referenced by display_startup(), enable_tegra210_dev(), gma_init(), load_vbt(), mainboard_init(), setup_usb(), should_run_oprom(), soc_init(), tcss_configure_dp_mode(), variant_chip_display_init(), variant_ramstage_init(), vbt_get(), and wa_init_display_signal().
int get_ec_is_trusted | ( | void | ) |
Definition at line 25 of file chromeos.c.
References board_id(), CONFIG, EC_IN_RW, EC_IN_RW_GPIO, EC_IN_RW_PAD, get_gpio(), GPIO, GPIO_D17, GPIO_EC_IN_RW, GPIO_EC_IN_RW_ODL, GPIO_ECINRW, gpio_get(), gpio_get_value(), GPIO_X23, score_get_gpio(), and UNDEFINED_STRAPPING_ID.
Referenced by verstage_main().
int get_lid_switch | ( | void | ) |
Definition at line 37 of file chromeos.c.
References CONFIG, EC_GPI_LID_STAT_BIT, EC_HW_GPI_STATUS, ec_mem_read(), ec_read(), EC_SWITCH_LID_OPEN, get_gpio(), google_chromeec_get_switches(), and GPIO_LID.
Referenced by fill_lb_gpios(), and verstage_main().
int get_recovery_mode_retrain_switch | ( | void | ) |
Definition at line 29 of file switches.c.
References EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT, EC_HOST_EVENT_MASK, and google_chromeec_get_events_b().
Referenced by invalidate_normal_cache(), mrc_cache_find_current(), and mt_mem_init_run().
int get_recovery_mode_switch | ( | void | ) |
HACK: Use Fn-Key as recovery mode switch.
Wait for sense register ready and read Fn-Key state.
Definition at line 17 of file switches.c.
References BIOS_ERR, BIOS_INFO, CONFIG, EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_MASK, EC_SWITCH_DEDICATED_RECOVERY, ENV_SEPARATE_VERSTAGE, fw_cfg_check_file(), fw_cfg_get(), get_gpio(), get_switch_state(), google_chromeec_get_events_b(), google_chromeec_get_switches(), gpio_get(), gpio_get_value(), GPIO_REC_MODE, GPIO_RECOVERY, GPIO_RECOVERY_PUSHKEY, GPIO_RECOVERY_SERVO, GPIO_X07, GPIO_Y10, h8_get_fn_key(), h8_get_sense_ready(), mdelay(), printk, raw_get_recovery_mode_switch(), REC_MODE_NOT_REQUESTED, REC_MODE_REQUESTED, REC_MODE_SETTING, REC_MODE_UNINITIALIZED, recovery_req, FWCfgFile::select, FWCfgFile::size, stopwatch_expired(), stopwatch_init_msecs_expire(), tlcl_cr50_get_recovery_button(), and TPM_SUCCESS.
Referenced by early_ec_init(), fill_lb_gpios(), stout_ec_init(), and verstage_main().
int get_wipeout_mode_switch | ( | void | ) |
Definition at line 151 of file chromeos.c.
References get_switch_state(), and wipeout_req.
Referenced by verstage_main().
int get_write_protect_state | ( | void | ) |
Only used if CONFIG(CHROMEOS) is set.
Always zero as the WP pin of the flash is tied high.
CONFIG(EC_GOOGLE_CHROMEEC_SWITCHES)
Definition at line 39 of file vboot.c.
References get_gpio(), get_wp_status_gpio_pin(), GPIO, GPIO_D16, gpio_get(), gpio_get_value(), GPIO_PCH_WP, GPIO_SPI_WP, GPIO_WP, GPIO_X30, GPP_E15, read_gpio(), WP_GPIO, wp_polarity, WP_SW, WRITE_PROTECT, and WRITE_PROTECT_L.
Referenced by nvm_is_write_protected().
int gfx_get_init_done | ( | void | ) |
Definition at line 10 of file bootmode.c.
References gfx_init_done.
Referenced by fill_lb_gpios(), and igd_init().
void gfx_set_init_done | ( | int | done | ) |
Definition at line 17 of file bootmode.c.
References gfx_init_done.
Referenced by fsp_run_silicon_init(), gma_func0_init(), gma_init(), gma_ngi(), and igd_init().
int platform_is_resuming | ( | void | ) |
Definition at line 101 of file acpi.c.
References ACPI_BASE_ADDRESS, acpi_get_sleep_type(), acpi_read16(), ACPI_S3, BIOS_ERR, get_pmbase(), inl(), inw(), MMIO_ACPI_PM1_STS, PM1_CNT, PM1_STS, pmc_read_pm1_control(), printk, read_pmbase16(), svc_get_boot_mode(), and WAK_STS.
Referenced by handle_digest_result(), southbridge_detect_s3_resume(), and verstage_main().