coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __COREBOOT_SRC_SOC_CAVIUM_COMMON_INCLUDE_SOC_GPIO_H
4
#define __COREBOOT_SRC_SOC_CAVIUM_COMMON_INCLUDE_SOC_GPIO_H
5
6
#include <types.h>
7
8
typedef
u32
gpio_t
;
9
#include <
gpio.h
>
10
11
/* The following functions must be implemented by SoC/board code. */
12
gpio_t
gpio_pin_count
(
void
);
13
void
gpio_invert
(
gpio_t
gpio
,
int
value
);
14
int
gpio_strap_value
(
gpio_t
gpio
);
15
16
void
gpio_init
(
void
);
17
18
#endif
value
pte_t value
Definition:
mmu.c:91
gpio_t
uint32_t gpio_t
Definition:
gpio.h:9
gpio_strap_value
int gpio_strap_value(gpio_t gpio)
Definition:
gpio.c:150
gpio_invert
void gpio_invert(gpio_t gpio, int value)
Definition:
gpio.c:119
gpio_pin_count
gpio_t gpio_pin_count(void)
Definition:
gpio.c:53
gpio_init
void gpio_init(void)
Definition:
gpio.c:165
gpio.h
u32
uint32_t u32
Definition:
stdint.h:51
gpio_t
Definition:
gpio_base.h:7
gpio
Definition:
pinmux.c:36
src
soc
cavium
cn81xx
include
soc
gpio.h
Generated by
1.9.1