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

Go to the source code of this file.

Macros

#define PMU_GPIO_PORT   0
 

Functions

int is_pmu_gpio (gpio_t gpio)
 
voidgpio_grf_reg (gpio_t gpio)
 
u32 gpio_get_pull_val (gpio_t gpio, enum gpio_pull pull)
 

Variables

struct rockchip_gpio_regsgpio_port []
 

Macro Definition Documentation

◆ PMU_GPIO_PORT

#define PMU_GPIO_PORT   0

Definition at line 22 of file gpio.c.

Function Documentation

◆ gpio_get_pull_val()

u32 gpio_get_pull_val ( gpio_t  gpio,
enum gpio_pull  pull 
)

Definition at line 39 of file gpio.c.

Referenced by gpio_set_pull().

Here is the caller graph for this function:

◆ gpio_grf_reg()

void* gpio_grf_reg ( gpio_t  gpio)

Definition at line 31 of file gpio.c.

Referenced by gpio_set_pull().

Here is the caller graph for this function:

◆ is_pmu_gpio()

int is_pmu_gpio ( gpio_t  gpio)

Definition at line 24 of file gpio.c.

Referenced by gpio_grf_reg(), and gpio_set_pull().

Here is the caller graph for this function:

Variable Documentation

◆ gpio_port

struct rockchip_gpio_regs* gpio_port[]
Initial value:
= {
}
#define GPIO5_BASE
Definition: addressmap.h:58
#define GPIO7_BASE
Definition: addressmap.h:60
#define GPIO8_BASE
Definition: addressmap.h:61
#define GPIO1_BASE
Definition: addressmap.h:54
#define GPIO0_BASE
Definition: addressmap.h:51
#define GPIO3_BASE
Definition: addressmap.h:56
#define GPIO2_BASE
Definition: addressmap.h:55
#define GPIO4_BASE
Definition: addressmap.h:57
#define GPIO6_BASE
Definition: addressmap.h:59

Definition at line 10 of file gpio.c.

Referenced by gpio_get(), gpio_input_irq(), gpio_irq_status(), gpio_set(), and gpio_set_dir().