![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <gpio.h>
#include <soc/addressmap.h>
#include <soc/gpio.h>
#include <soc/grf.h>
#include <soc/soc.h>
Go to the source code of this file.
Macros | |
#define | PMU_GPIO_PORT0 0 |
#define | PMU_GPIO_PORT1 1 |
#define | IS_GPIO_BANK(g, p, b) (g.port == p && g.bank == GPIO_##b) |
Enumerations | |
enum | { PULLNONE_1V8 = 0 , PULLDOWN_1V8 = 1 , PULLUP_1V8 = 3 } |
Functions | |
int | is_pmu_gpio (gpio_t gpio) |
void * | gpio_grf_reg (gpio_t gpio) |
u32 | gpio_get_pull_val (gpio_t gpio, enum gpio_pull pull) |
Variables | |
struct rockchip_gpio_regs * | gpio_port [] |
#define IS_GPIO_BANK | ( | g, | |
p, | |||
b | |||
) | (g.port == p && g.bank == GPIO_##b) |
Definition at line 43 of file gpio.c.
References GPIO_PULLDOWN, GPIO_PULLNONE, GPIO_PULLUP, IS_GPIO_BANK, pull, PULLDOWN_1V8, PULLNONE_1V8, and PULLUP_1V8.
Definition at line 27 of file gpio.c.
References rk3399_pmugrf_regs::gpio0_p, rk3288_pmu_regs::gpio0pull, rk3288_grf_regs::gpio1_p, rk3399_grf_regs::gpio2_p, is_pmu_gpio(), rk3288_grf, rk3288_pmu, rk3399_grf, and rk3399_pmugrf.
int is_pmu_gpio | ( | gpio_t | gpio | ) |
Definition at line 20 of file gpio.c.
References PMU_GPIO_PORT, PMU_GPIO_PORT0, and PMU_GPIO_PORT1.
struct rockchip_gpio_regs* gpio_port[] |