![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
void | gpio_configure (gpio_t gpio, uint32_t func, uint32_t pull, uint32_t drive_str, uint32_t enable) |
void | gpio_set (gpio_t gpio, int value) |
int | gpio_get (gpio_t gpio) |
void | gpio_input_pulldown (gpio_t gpio) |
void | gpio_input_pullup (gpio_t gpio) |
void | gpio_input (gpio_t gpio) |
void | gpio_output (gpio_t gpio, int value) |
void | gpio_input_irq (gpio_t gpio, enum gpio_irq_type type, uint32_t pull) |
int | gpio_irq_status (gpio_t gpio) |
void gpio_configure | ( | gpio_t | gpio, |
uint32_t | func, | ||
uint32_t | pull, | ||
uint32_t | drive_str, | ||
uint32_t | enable | ||
) |
Definition at line 7 of file gpio.c.
References assert, GPIO_BMSK, GPIO_CFG_DRV_BMSK, GPIO_CFG_DRV_SHFT, GPIO_CFG_EGPIO_BMSK, GPIO_CFG_EGPIO_SHFT, GPIO_CFG_FUNC_BMSK, GPIO_CFG_FUNC_SHFT, GPIO_CFG_OE_SHFT, GPIO_CFG_PULL_BMSK, GPIO_CFG_PULL_SHFT, GPIO_PULL_UP, pull, read32(), and write32().
Referenced by blsp_i2c_init(), configure_gpios(), gpio_input(), gpio_input_irq(), gpio_input_pulldown(), gpio_input_pullup(), gpio_output(), i2c_init(), ipq_configure_gpio(), qi2s_configure_gpios(), qup_spi_init(), spi_ctrlr_claim_bus(), and uart_init().
int gpio_get | ( | gpio_t | gpio | ) |
Definition at line 33 of file gpio.c.
References GPIO_BMSK, GPIO_IO_IN_SHFT, and read32().
Definition at line 52 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_FUNC_GPIO, GPIO_INPUT, and GPIO_NO_PULL.
void gpio_input_irq | ( | gpio_t | gpio, |
enum gpio_irq_type | type, | ||
uint32_t | pull | ||
) |
Definition at line 65 of file gpio.c.
References clrsetbits32, GPIO_2MA, gpio_configure(), GPIO_FUNC_GPIO, GPIO_INPUT, GPIO_INTR_DECT_CTL_MASK, GPIO_INTR_DECT_CTL_SHFT, GPIO_INTR_RAW_STATUS_EN_SHFT, GPIO_INTR_STATUS_ENABLE, pull, and type.
Referenced by configure_tpm(), and setup_chromeos_gpios().
Definition at line 40 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_FUNC_GPIO, GPIO_INPUT, and GPIO_PULL_DOWN.
Definition at line 46 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_FUNC_GPIO, GPIO_INPUT, and GPIO_PULL_UP.
int gpio_irq_status | ( | gpio_t | gpio | ) |
Definition at line 79 of file gpio.c.
References GPIO_INTR_STATUS_DISABLE, GPIO_INTR_STATUS_ENABLE, GPIO_INTR_STATUS_MASK, read32(), and write32().
Definition at line 58 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_FUNC_GPIO, GPIO_NO_PULL, GPIO_OUTPUT, gpio_set(), and value.