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 STOUT_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
 
const struct pch_gpio_map mainboard_gpio_map
 

Macro Definition Documentation

◆ STOUT_GPIO_H

#define STOUT_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,
},
}
static const struct pch_gpio_set1 pch_gpio_set1_direction
Definition: gpio.c:43
static const struct pch_gpio_set2 pch_gpio_set2_level
Definition: gpio.c:180
static const struct pch_gpio_set1 pch_gpio_set1_level
Definition: gpio.c:76
static const struct pch_gpio_set3 pch_gpio_set3_direction
Definition: gpio.c:225
static const struct pch_gpio_set2 pch_gpio_set2_mode
Definition: gpio.c:115
static const struct pch_gpio_set1 pch_gpio_set1_invert
Definition: gpio.c:109
static const struct pch_gpio_set1 pch_gpio_set1_mode
Definition: gpio.c:8
static const struct pch_gpio_set3 pch_gpio_set3_mode
Definition: gpio.c:210
static const struct pch_gpio_set3 pch_gpio_set3_level
Definition: gpio.c:241
static const struct pch_gpio_set2 pch_gpio_set2_direction
Definition: gpio.c:150

Definition at line 1 of file gpio.c.

◆ pch_gpio_set1_direction

const struct pch_gpio_set1 pch_gpio_set1_direction
static
Initial value:
= {
.gpio0 = GPIO_DIR_OUTPUT,
.gpio1 = GPIO_DIR_INPUT,
.gpio2 = GPIO_DIR_INPUT,
.gpio3 = GPIO_DIR_INPUT,
.gpio4 = GPIO_DIR_INPUT,
.gpio5 = GPIO_DIR_OUTPUT,
.gpio6 = GPIO_DIR_INPUT,
.gpio7 = GPIO_DIR_INPUT,
.gpio8 = GPIO_DIR_INPUT,
.gpio12 = GPIO_DIR_OUTPUT,
.gpio13 = GPIO_DIR_OUTPUT,
.gpio15 = GPIO_DIR_INPUT,
.gpio16 = GPIO_DIR_OUTPUT,
.gpio17 = GPIO_DIR_OUTPUT,
.gpio19 = GPIO_DIR_OUTPUT,
.gpio21 = GPIO_DIR_OUTPUT,
.gpio22 = GPIO_DIR_INPUT,
.gpio23 = GPIO_DIR_OUTPUT,
.gpio27 = GPIO_DIR_INPUT,
.gpio28 = GPIO_DIR_OUTPUT,
.gpio29 = GPIO_DIR_OUTPUT,
}
#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_set1_invert

const struct pch_gpio_set1 pch_gpio_set1_invert
static
Initial value:
= {
.gpio1 = GPIO_INVERT,
.gpio6 = GPIO_INVERT,
.gpio8 = GPIO_INVERT,
}
#define GPIO_INVERT
Definition: gpio.h:32

Definition at line 1 of file gpio.c.

◆ pch_gpio_set1_level

const struct pch_gpio_set1 pch_gpio_set1_level
static
Initial value:
= {
.gpio0 = GPIO_LEVEL_HIGH,
.gpio1 = GPIO_LEVEL_LOW,
.gpio2 = GPIO_LEVEL_LOW,
.gpio3 = GPIO_LEVEL_LOW,
.gpio4 = GPIO_LEVEL_LOW,
.gpio5 = GPIO_LEVEL_HIGH,
.gpio6 = GPIO_LEVEL_LOW,
.gpio7 = GPIO_LEVEL_HIGH,
.gpio8 = GPIO_LEVEL_LOW,
.gpio12 = GPIO_LEVEL_LOW,
.gpio13 = GPIO_LEVEL_LOW,
.gpio15 = GPIO_LEVEL_LOW,
.gpio16 = GPIO_LEVEL_HIGH,
.gpio17 = GPIO_LEVEL_LOW,
.gpio19 = GPIO_LEVEL_LOW,
.gpio21 = GPIO_LEVEL_LOW,
.gpio22 = GPIO_LEVEL_LOW,
.gpio23 = GPIO_LEVEL_LOW,
.gpio27 = GPIO_LEVEL_LOW,
.gpio28 = GPIO_LEVEL_HIGH,
.gpio29 = GPIO_LEVEL_HIGH,
}
#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_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
Initial value:
= {
.gpio33 = GPIO_DIR_OUTPUT,
.gpio34 = GPIO_DIR_OUTPUT,
.gpio35 = GPIO_DIR_OUTPUT,
.gpio36 = GPIO_DIR_INPUT,
.gpio37 = GPIO_DIR_INPUT,
.gpio38 = GPIO_DIR_INPUT,
.gpio39 = GPIO_DIR_INPUT,
.gpio40 = GPIO_DIR_INPUT,
.gpio41 = GPIO_DIR_INPUT,
.gpio48 = GPIO_DIR_OUTPUT,
.gpio49 = GPIO_DIR_INPUT,
.gpio51 = GPIO_DIR_OUTPUT,
.gpio53 = GPIO_DIR_OUTPUT,
.gpio54 = GPIO_DIR_INPUT,
.gpio57 = GPIO_DIR_INPUT,
.gpio59 = GPIO_DIR_INPUT,
.gpio60 = GPIO_DIR_OUTPUT,
.gpio61 = GPIO_DIR_OUTPUT,
}

Definition at line 1 of file gpio.c.

◆ pch_gpio_set2_level

const struct pch_gpio_set2 pch_gpio_set2_level
static
Initial value:
= {
.gpio33 = GPIO_LEVEL_LOW,
.gpio34 = GPIO_LEVEL_HIGH,
.gpio35 = GPIO_LEVEL_HIGH,
.gpio36 = GPIO_LEVEL_LOW,
.gpio37 = GPIO_LEVEL_LOW,
.gpio38 = GPIO_LEVEL_LOW,
.gpio39 = GPIO_LEVEL_LOW,
.gpio40 = GPIO_LEVEL_HIGH,
.gpio41 = GPIO_LEVEL_LOW,
.gpio48 = GPIO_LEVEL_LOW,
.gpio49 = GPIO_LEVEL_HIGH,
.gpio51 = GPIO_LEVEL_HIGH,
.gpio53 = GPIO_LEVEL_HIGH,
.gpio54 = GPIO_LEVEL_LOW,
.gpio57 = GPIO_LEVEL_LOW,
.gpio59 = GPIO_LEVEL_HIGH,
.gpio60 = GPIO_LEVEL_HIGH,
.gpio61 = GPIO_LEVEL_LOW,
}

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_set3_direction

const struct pch_gpio_set3 pch_gpio_set3_direction
static
Initial value:
= {
.gpio64 = GPIO_DIR_OUTPUT,
.gpio65 = GPIO_DIR_OUTPUT,
.gpio66 = GPIO_DIR_OUTPUT,
.gpio67 = GPIO_DIR_INPUT,
.gpio68 = GPIO_DIR_INPUT,
.gpio69 = GPIO_DIR_OUTPUT,
.gpio70 = GPIO_DIR_OUTPUT,
.gpio71 = GPIO_DIR_OUTPUT,
.gpio72 = GPIO_DIR_OUTPUT,
}

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_HIGH,
.gpio65 = GPIO_LEVEL_LOW,
.gpio66 = GPIO_LEVEL_HIGH,
.gpio67 = GPIO_LEVEL_LOW,
.gpio68 = GPIO_LEVEL_HIGH,
.gpio69 = GPIO_LEVEL_LOW,
.gpio70 = GPIO_LEVEL_HIGH,
.gpio71 = GPIO_LEVEL_HIGH,
.gpio72 = GPIO_LEVEL_HIGH,
}

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_GPIO,
.gpio65 = GPIO_MODE_GPIO,
.gpio66 = GPIO_MODE_GPIO,
.gpio67 = GPIO_MODE_GPIO,
.gpio68 = GPIO_MODE_GPIO,
.gpio69 = GPIO_MODE_GPIO,
.gpio70 = GPIO_MODE_GPIO,
.gpio71 = GPIO_MODE_GPIO,
.gpio72 = GPIO_MODE_GPIO,
.gpio73 = GPIO_MODE_NATIVE,
.gpio74 = GPIO_MODE_NATIVE,
.gpio75 = GPIO_MODE_NATIVE,
}
@ GPIO_MODE_GPIO
Definition: gpio.h:20
#define GPIO_MODE_NATIVE
Definition: gpio.h:24

Definition at line 1 of file gpio.c.