coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
chromeos.c File Reference
#include <bootmode.h>
#include <boot/coreboot_tables.h>
#include <gpio.h>
#include <security/tpm/tis.h>
Include dependency graph for chromeos.c:

Go to the source code of this file.

Functions

void setup_chromeos_gpios (void)
 
void fill_lb_gpios (struct lb_gpios *gpios)
 
int get_write_protect_state (void)
 Only used if CONFIG(CHROMEOS) is set. More...
 
int tis_plat_irq_status (void)
 
int get_ec_is_trusted (void)
 

Function Documentation

◆ fill_lb_gpios()

void fill_lb_gpios ( struct lb_gpios gpios)

Definition at line 22 of file chromeos.c.

References ACTIVE_HIGH, ACTIVE_LOW, ARRAY_SIZE, GPIO_EC_AP_INT, GPIO_EC_IN_RW, GPIO_EN_SPK_AMP, GPIO_H1_AP_INT, GPIO_SD_CD, and lb_add_gpios().

Here is the call graph for this function:

◆ get_ec_is_trusted()

int get_ec_is_trusted ( void  )

Definition at line 44 of file chromeos.c.

References GPIO_EC_IN_RW, and gpio_get().

Here is the call graph for this function:

◆ get_write_protect_state()

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.

Definition at line 34 of file chromeos.c.

References gpio_get(), and GPIO_WP.

Here is the call graph for this function:

◆ setup_chromeos_gpios()

void setup_chromeos_gpios ( void  )

Definition at line 10 of file chromeos.c.

References GPIO_EC_AP_INT, GPIO_EC_IN_RW, GPIO_EN_SPK_AMP, GPIO_H1_AP_INT, gpio_input(), gpio_input_pullup(), gpio_output(), GPIO_RESET, GPIO_SD_CD, GPIO_WP, and GPIO_XHCI_DONE.

Referenced by bootblock_mainboard_init(), and mainboard_early_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tis_plat_irq_status()

int tis_plat_irq_status ( void  )

Definition at line 39 of file chromeos.c.

References gpio_eint_poll(), and GPIO_H1_AP_INT.

Here is the call graph for this function: