coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
#include <device/mmio.h>
#include <gpio.h>
#include <assert.h>
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

static voidgpio_find_reg_addr (gpio_t gpio)
 
static void gpio_set_spec_pull_pupd (gpio_t gpio, enum pull_enable enable, enum pull_select select)
 
static void gpio_set_pull_pu_pd (gpio_t gpio, enum pull_enable enable, enum pull_select select)
 
void gpio_set_pull (gpio_t gpio, enum pull_enable enable, enum pull_select select)
 

Function Documentation

◆ gpio_find_reg_addr()

static void* gpio_find_reg_addr ( gpio_t  gpio)
static

Definition at line 7 of file gpio.c.

References IOCFG_BL_BASE, IOCFG_BM_BASE, IOCFG_BR_BASE, IOCFG_LB_BASE, IOCFG_LM_BASE, IOCFG_LT_BASE, IOCFG_RM_BASE, IOCFG_RT_BASE, IOCFG_TL_BASE, and NULL.

Referenced by gpio_set_pull_pu_pd(), and gpio_set_spec_pull_pupd().

Here is the caller graph for this function:

◆ gpio_set_pull()

void gpio_set_pull ( gpio_t  gpio,
enum pull_enable  enable,
enum pull_select  select 
)

Definition at line 95 of file gpio.c.

References gpio_set_pull_pu_pd(), and gpio_set_spec_pull_pupd().

Here is the call graph for this function:

◆ gpio_set_pull_pu_pd()

static void gpio_set_pull_pu_pd ( gpio_t  gpio,
enum pull_enable  enable,
enum pull_select  select 
)
static

Definition at line 71 of file gpio.c.

References clrbits32, gpio_find_reg_addr(), GPIO_PULL_DOWN, GPIO_PULL_ENABLE, and setbits32.

Referenced by gpio_set_pull().

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

◆ gpio_set_spec_pull_pupd()

static void gpio_set_spec_pull_pupd ( gpio_t  gpio,
enum pull_enable  enable,
enum pull_select  select 
)
static

Definition at line 46 of file gpio.c.

References clrbits32, gpio_find_reg_addr(), GPIO_PULL_DOWN, GPIO_PULL_ENABLE, and setbits32.

Referenced by gpio_set_pull().

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