![]() |
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 GPIO_CFG_DRV_BMSK, GPIO_CFG_DRV_SHFT, GPIO_CFG_FUNC_BMSK, GPIO_CFG_FUNC_SHFT, GPIO_CFG_OE_BMSK, GPIO_CFG_OE_SHFT, GPIO_CFG_PULL_BMSK, GPIO_CFG_PULL_SHFT, pull, and write32().
int gpio_get | ( | gpio_t | gpio | ) |
Definition at line 27 of file gpio.c.
References GPIO_IO_IN_BMSK, GPIO_IO_IN_SHFT, and read32().
Definition at line 47 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_DISABLE, GPIO_FUNC_GPIO, and GPIO_NO_PULL.
void gpio_input_irq | ( | gpio_t | gpio, |
enum gpio_irq_type | type, | ||
uint32_t | pull | ||
) |
Definition at line 60 of file gpio.c.
References clrsetbits32, GPIO_2MA, gpio_configure(), GPIO_DISABLE, GPIO_FUNC_GPIO, GPIO_INTR_DECT_CTL_MASK, GPIO_INTR_DECT_CTL_SHIFT, GPIO_INTR_RAW_STATUS_EN_SHIFT, GPIO_INTR_RAW_STATUS_ENABLE, pull, and type.
Definition at line 35 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_DISABLE, GPIO_FUNC_GPIO, and GPIO_PULL_DOWN.
Definition at line 41 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_DISABLE, GPIO_FUNC_GPIO, and GPIO_PULL_UP.
int gpio_irq_status | ( | gpio_t | gpio | ) |
Definition at line 74 of file gpio.c.
References GPIO_INTR_STATUS_DISABLE, GPIO_INTR_STATUS_MASK, read32(), and write32().
Definition at line 53 of file gpio.c.
References GPIO_2MA, gpio_configure(), GPIO_ENABLE, GPIO_FUNC_GPIO, GPIO_NO_PULL, gpio_set(), and value.