![]() |
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 | |
static int | gpio_not_valid (gpio_t gpio) |
void | gpio_tlmm_config_set (gpio_t gpio, unsigned int func, unsigned int pull, unsigned int drvstr, unsigned int enable) |
void | gpio_tlmm_config_get (gpio_t gpio, unsigned int *func, unsigned int *pull, unsigned int *drvstr, unsigned int *enable) |
int | gpio_get (gpio_t gpio) |
void | gpio_set (gpio_t gpio, int value) |
void | gpio_input_pulldown (gpio_t gpio) |
void | gpio_input_pullup (gpio_t gpio) |
void | gpio_input (gpio_t gpio) |
int gpio_get | ( | gpio_t | gpio | ) |
Definition at line 88 of file gpio.c.
References GPIO_IN_OUT_ADDR, GPIO_IO_IN_MASK, GPIO_IO_IN_SHIFT, gpio_not_valid(), and read32().
Definition at line 117 of file gpio.c.
References GPIO_2MA, GPIO_DISABLE, GPIO_FUNC_DISABLE, GPIO_NO_PULL, and gpio_tlmm_config_set().
Definition at line 105 of file gpio.c.
References GPIO_2MA, GPIO_DISABLE, GPIO_FUNC_DISABLE, GPIO_PULL_DOWN, and gpio_tlmm_config_set().
Definition at line 111 of file gpio.c.
References GPIO_2MA, GPIO_DISABLE, GPIO_FUNC_DISABLE, GPIO_PULL_UP, and gpio_tlmm_config_set().
|
inlinestatic |
Definition at line 15 of file gpio.c.
References GPIO_MAX_NUM.
Referenced by gpio_get(), gpio_set(), gpio_tlmm_config_get(), and gpio_tlmm_config_set().
Definition at line 97 of file gpio.c.
References GPIO_IN_OUT_ADDR, GPIO_IO_OUT_SHIFT, gpio_not_valid(), value, and write32().
void gpio_tlmm_config_get | ( | gpio_t | gpio, |
unsigned int * | func, | ||
unsigned int * | pull, | ||
unsigned int * | drvstr, | ||
unsigned int * | enable | ||
) |
Definition at line 61 of file gpio.c.
References addr, GPIO_CFG_DRV_MASK, GPIO_CFG_DRV_SHIFT, GPIO_CFG_FUNC_MASK, GPIO_CFG_FUNC_SHIFT, GPIO_CFG_OE_MASK, GPIO_CFG_OE_SHIFT, GPIO_CFG_PULL_MASK, GPIO_CFG_PULL_SHIFT, GPIO_CONFIG_ADDR, gpio_not_valid(), pull, read32(), and val.
void gpio_tlmm_config_set | ( | gpio_t | gpio, |
unsigned int | func, | ||
unsigned int | pull, | ||
unsigned int | drvstr, | ||
unsigned int | enable | ||
) |
Definition at line 32 of file gpio.c.
References GPIO_CFG_DRV_MASK, GPIO_CFG_DRV_SHIFT, GPIO_CFG_FUNC_MASK, GPIO_CFG_FUNC_SHIFT, GPIO_CFG_OE_MASK, GPIO_CFG_OE_SHIFT, GPIO_CFG_PULL_MASK, GPIO_CFG_PULL_SHIFT, GPIO_CONFIG_ADDR, gpio_not_valid(), pull, val, and write32().
Referenced by assert_sw_reset(), blsp_i2c_init_board(), gpio_input(), gpio_input_pulldown(), gpio_input_pullup(), gsbi_init_board(), ipq_setup_tpm(), read_gpio(), setup_tpm(), and setup_usb().