coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio.c File Reference
Include dependency graph for gpio.c:

Go to the source code of this file.

Macros

#define LUMPY_GPIO_H
 

Variables

static const struct pch_gpio_set1 pch_gpio_set1_mode
 
static const struct pch_gpio_set1 pch_gpio_set1_direction
 
static const struct pch_gpio_set1 pch_gpio_set1_level
 
static const struct pch_gpio_set1 pch_gpio_set1_invert
 
static const struct pch_gpio_set2 pch_gpio_set2_mode
 
static const struct pch_gpio_set2 pch_gpio_set2_direction
 
static const struct pch_gpio_set2 pch_gpio_set2_level
 
static const struct pch_gpio_set3 pch_gpio_set3_mode
 
static const struct pch_gpio_set3 pch_gpio_set3_direction
 
static const struct pch_gpio_set3 pch_gpio_set3_level
 
static const struct pch_gpio_set2 pch_gpio_set2_reset
 
const struct pch_gpio_map mainboard_gpio_map
 

Macro Definition Documentation

◆ LUMPY_GPIO_H

#define LUMPY_GPIO_H

Definition at line 4 of file gpio.c.

Variable Documentation

◆ mainboard_gpio_map

const struct pch_gpio_map mainboard_gpio_map
Initial value:
= {
.set1 = {
.direction = &pch_gpio_set1_direction,
},
.set2 = {
.direction = &pch_gpio_set2_direction,
},
.set3 = {
.direction = &pch_gpio_set3_direction,
},
}
const struct pch_gpio_set1 pch_gpio_set1_direction
Definition: gpio.c:40
const struct pch_gpio_set2 pch_gpio_set2_level
Definition: gpio.c:157
const struct pch_gpio_set1 pch_gpio_set1_level
Definition: gpio.c:75
const struct pch_gpio_set3 pch_gpio_set3_direction
Definition: gpio.c:187
const struct pch_gpio_set2 pch_gpio_set2_mode
Definition: gpio.c:87
const struct pch_gpio_set1 pch_gpio_set1_invert
Definition: gpio.c:84
const struct pch_gpio_set1 pch_gpio_set1_mode
Definition: gpio.c:5
const struct pch_gpio_set3 pch_gpio_set3_mode
Definition: gpio.c:172
const struct pch_gpio_set3 pch_gpio_set3_level
Definition: gpio.c:202
const struct pch_gpio_set2 pch_gpio_set2_direction
Definition: gpio.c:122
static const struct pch_gpio_set2 pch_gpio_set2_reset
Definition: gpio.c:294

Definition at line 1 of file gpio.c.

◆ pch_gpio_set1_direction

const struct pch_gpio_set1 pch_gpio_set1_direction
static

Definition at line 1 of file gpio.c.

◆ pch_gpio_set1_invert

const struct pch_gpio_set1 pch_gpio_set1_invert
static
Initial value:
= {
.gpio0 = GPIO_NO_INVERT,
.gpio1 = GPIO_INVERT,
.gpio2 = GPIO_INVERT,
.gpio3 = GPIO_INVERT,
.gpio4 = GPIO_NO_INVERT,
.gpio5 = GPIO_INVERT,
.gpio6 = GPIO_NO_INVERT,
.gpio7 = GPIO_INVERT,
.gpio8 = GPIO_NO_INVERT,
.gpio9 = GPIO_NO_INVERT,
.gpio10 = GPIO_NO_INVERT,
.gpio11 = GPIO_INVERT,
.gpio12 = GPIO_NO_INVERT,
.gpio13 = GPIO_NO_INVERT,
.gpio14 = GPIO_INVERT,
.gpio15 = GPIO_NO_INVERT,
}
#define GPIO_INVERT
Definition: gpio.h:32
#define GPIO_NO_INVERT
Definition: gpio.h:31

Definition at line 1 of file gpio.c.

◆ pch_gpio_set1_level

const struct pch_gpio_set1 pch_gpio_set1_level
static

Definition at line 1 of file gpio.c.

◆ pch_gpio_set1_mode

const struct pch_gpio_set1 pch_gpio_set1_mode
static

Definition at line 1 of file gpio.c.

◆ pch_gpio_set2_direction

const struct pch_gpio_set2 pch_gpio_set2_direction
static

Definition at line 1 of file gpio.c.

◆ pch_gpio_set2_level

const struct pch_gpio_set2 pch_gpio_set2_level
static

Definition at line 1 of file gpio.c.

◆ pch_gpio_set2_mode

const struct pch_gpio_set2 pch_gpio_set2_mode
static

Definition at line 1 of file gpio.c.

◆ pch_gpio_set2_reset

const struct pch_gpio_set2 pch_gpio_set2_reset
static
Initial value:
= {
.gpio38 = GPIO_RESET_RSMRST,
.gpio43 = GPIO_RESET_RSMRST,
}
#define GPIO_RESET_RSMRST
Definition: gpio.h:41

Definition at line 1 of file gpio.c.

◆ pch_gpio_set3_direction

const struct pch_gpio_set3 pch_gpio_set3_direction
static
Initial value:
= {
.gpio64 = GPIO_DIR_INPUT,
.gpio65 = GPIO_DIR_INPUT,
.gpio66 = GPIO_DIR_INPUT,
.gpio67 = GPIO_DIR_INPUT,
.gpio68 = GPIO_DIR_INPUT,
.gpio69 = GPIO_DIR_INPUT,
.gpio70 = GPIO_DIR_OUTPUT,
.gpio71 = GPIO_DIR_OUTPUT,
.gpio72 = GPIO_DIR_INPUT,
.gpio73 = GPIO_DIR_OUTPUT,
.gpio74 = GPIO_DIR_INPUT,
.gpio75 = GPIO_DIR_INPUT,
}
#define GPIO_DIR_INPUT
Definition: gpio.h:51
#define GPIO_DIR_OUTPUT
Definition: gpio.h:50

Definition at line 1 of file gpio.c.

◆ pch_gpio_set3_level

const struct pch_gpio_set3 pch_gpio_set3_level
static
Initial value:
= {
.gpio64 = GPIO_LEVEL_LOW,
.gpio65 = GPIO_LEVEL_LOW,
.gpio66 = GPIO_LEVEL_LOW,
.gpio67 = GPIO_LEVEL_LOW,
.gpio68 = GPIO_LEVEL_LOW,
.gpio69 = GPIO_LEVEL_LOW,
.gpio70 = GPIO_LEVEL_HIGH,
.gpio71 = GPIO_LEVEL_HIGH,
.gpio72 = GPIO_LEVEL_LOW,
.gpio73 = GPIO_LEVEL_LOW,
.gpio74 = GPIO_LEVEL_LOW,
.gpio75 = GPIO_LEVEL_LOW,
}
#define GPIO_LEVEL_HIGH
Definition: gpio.h:54
#define GPIO_LEVEL_LOW
Definition: gpio.h:53

Definition at line 1 of file gpio.c.

◆ pch_gpio_set3_mode

const struct pch_gpio_set3 pch_gpio_set3_mode
static
Initial value:
= {
.gpio64 = GPIO_MODE_NONE,
.gpio65 = GPIO_MODE_NONE,
.gpio66 = GPIO_MODE_NONE,
.gpio67 = GPIO_MODE_NONE,
.gpio68 = GPIO_MODE_NONE,
.gpio69 = GPIO_MODE_GPIO,
.gpio70 = GPIO_MODE_GPIO,
.gpio71 = GPIO_MODE_GPIO,
.gpio72 = GPIO_MODE_NATIVE,
.gpio73 = GPIO_MODE_GPIO,
.gpio74 = GPIO_MODE_NONE,
.gpio75 = GPIO_MODE_NATIVE,
}
@ GPIO_MODE_GPIO
Definition: gpio.h:20
#define GPIO_MODE_NATIVE
Definition: gpio.h:24
#define GPIO_MODE_NONE
Definition: gpio.h:26

Definition at line 1 of file gpio.c.