![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <gpio.h>
#include <soc/addressmap.h>
#include <stddef.h>
#include <stdint.h>
#include "pinmux.h"
Go to the source code of this file.
Variables | |
static const struct gpio_bank * | gpio_banks = (void *)TEGRA_GPIO_BASE |
Definition at line 11 of file gpio.c.
References GPIO_MODE_GPIO, GPIO_PINMUX_SHIFT, gpio_set_int_enable(), gpio_set_mode(), gpio_set_out_enable(), PINMUX_INPUT_ENABLE, pinmux_set_config(), and pull.
Referenced by gpio_input(), gpio_input_pulldown(), and gpio_input_pullup().
Definition at line 21 of file gpio.c.
References GPIO_MODE_GPIO, GPIO_PINMUX_SHIFT, gpio_set(), gpio_set_int_enable(), gpio_set_mode(), gpio_set_out_enable(), PINMUX_PULL_NONE, pinmux_set_config(), and value.
Referenced by gpio_output(), and gpio_output_open_drain().
int gpio_get | ( | gpio_t | gpio | ) |
Definition at line 120 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), gpio_bank::in_value, and offsetof.
int gpio_get_int_enable | ( | gpio_t | gpio | ) |
Definition at line 144 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), gpio_bank::int_enable, and offsetof.
Definition at line 163 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), gpio_bank::int_level, and offsetof.
int gpio_get_int_status | ( | gpio_t | gpio | ) |
Definition at line 128 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), gpio_bank::int_status, and offsetof.
int gpio_get_lock | ( | gpio_t | gpio | ) |
Definition at line 80 of file gpio.c.
References config, GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), and offsetof.
int gpio_get_mode | ( | gpio_t | gpio | ) |
Definition at line 64 of file gpio.c.
References config, GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), and offsetof.
int gpio_get_out_enable | ( | gpio_t | gpio | ) |
Definition at line 96 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), offsetof, and gpio_bank::out_enable.
int gpio_get_out_value | ( | gpio_t | gpio | ) |
Definition at line 112 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_read_port(), offsetof, and gpio_bank::out_value.
Definition at line 191 of file gpio.c.
References __gpio_input(), and PINMUX_PULL_NONE.
Definition at line 181 of file gpio.c.
References __gpio_input(), and PINMUX_PULL_DOWN.
Definition at line 186 of file gpio.c.
References __gpio_input(), and PINMUX_PULL_UP.
Definition at line 196 of file gpio.c.
References __gpio_output(), and value.
Definition at line 201 of file gpio.c.
References __gpio_output(), PINMUX_OPEN_DRAIN, and value.
Definition at line 32 of file gpio.c.
References gpio_banks, GPIO_GPIOS_PER_BANK, GPIO_GPIOS_PER_PORT, offset, and read32().
Referenced by gpio_get(), gpio_get_int_enable(), gpio_get_int_level(), gpio_get_int_status(), gpio_get_lock(), gpio_get_mode(), gpio_get_out_enable(), and gpio_get_out_value().
Definition at line 104 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), offsetof, gpio_bank::out_value, and value.
Definition at line 173 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), gpio_bank::int_clear, and offsetof.
Definition at line 136 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), gpio_bank::int_enable, and offsetof.
Referenced by __gpio_input(), and __gpio_output().
Definition at line 152 of file gpio.c.
References config, GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), offsetof, and value.
Definition at line 72 of file gpio.c.
References config, GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), and offsetof.
Definition at line 56 of file gpio.c.
References config, GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), and offsetof.
Definition at line 88 of file gpio.c.
References GPIO_GPIOS_PER_PORT, GPIO_PINMUX_SHIFT, gpio_write_port(), offsetof, and gpio_bank::out_enable.
Referenced by __gpio_input(), and __gpio_output().
Definition at line 41 of file gpio.c.
References gpio_banks, GPIO_GPIOS_PER_BANK, GPIO_GPIOS_PER_PORT, mask, offset, read32(), value, and write32().
Referenced by gpio_set(), gpio_set_int_clear(), gpio_set_int_enable(), gpio_set_int_level(), gpio_set_lock(), gpio_set_mode(), and gpio_set_out_enable().
|
static |
Definition at line 30 of file gpio.c.
Referenced by gpio_read_port(), and gpio_write_port().