coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_ftns.h File Reference
#include <stdint.h>
Include dependency graph for gpio_ftns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GPIO_10   10
 
#define GPIO_11   11
 
#define GPIO_15   15
 
#define GPIO_16   16
 
#define GPIO_17   17
 
#define GPIO_18   18
 
#define GPIO_187   187
 
#define GPIO_189   189
 
#define GPIO_190   190
 
#define GPIO_191   191
 
#define GPIO_FTN_1   0x01
 
#define GPIO_OUTPUT   0x08
 
#define GPIO_INPUT   0x28
 
#define GPIO_DATA_IN   0x80
 
#define GPIO_DATA_LOW   0x00
 
#define GPIO_DATA_HIGH   0x40
 

Functions

void configure_gpio (u8 gpio, u8 iomux_ftn, u8 setting)
 
u8 read_gpio (u8 gpio)
 
int get_spd_offset (void)
 

Macro Definition Documentation

◆ GPIO_10

#define GPIO_10   10

Definition at line 12 of file gpio_ftns.h.

◆ GPIO_11

#define GPIO_11   11

Definition at line 13 of file gpio_ftns.h.

◆ GPIO_15

#define GPIO_15   15

Definition at line 14 of file gpio_ftns.h.

◆ GPIO_16

#define GPIO_16   16

Definition at line 15 of file gpio_ftns.h.

◆ GPIO_17

#define GPIO_17   17

Definition at line 16 of file gpio_ftns.h.

◆ GPIO_18

#define GPIO_18   18

Definition at line 17 of file gpio_ftns.h.

◆ GPIO_187

#define GPIO_187   187

Definition at line 18 of file gpio_ftns.h.

◆ GPIO_189

#define GPIO_189   189

Definition at line 19 of file gpio_ftns.h.

◆ GPIO_190

#define GPIO_190   190

Definition at line 20 of file gpio_ftns.h.

◆ GPIO_191

#define GPIO_191   191

Definition at line 21 of file gpio_ftns.h.

◆ GPIO_DATA_HIGH

#define GPIO_DATA_HIGH   0x40

Definition at line 27 of file gpio_ftns.h.

◆ GPIO_DATA_IN

#define GPIO_DATA_IN   0x80

Definition at line 25 of file gpio_ftns.h.

◆ GPIO_DATA_LOW

#define GPIO_DATA_LOW   0x00

Definition at line 26 of file gpio_ftns.h.

◆ GPIO_FTN_1

#define GPIO_FTN_1   0x01

Definition at line 22 of file gpio_ftns.h.

◆ GPIO_INPUT

#define GPIO_INPUT   0x28

Definition at line 24 of file gpio_ftns.h.

◆ GPIO_OUTPUT

#define GPIO_OUTPUT   0x08

Definition at line 23 of file gpio_ftns.h.

Function Documentation

◆ configure_gpio()

void configure_gpio ( u8  gpio,
u8  iomux_ftn,
u8  setting 
)

Definition at line 8 of file gpio_ftns.c.

References gpio_100_read8(), gpio_100_write8(), and iomux_write8().

Referenced by early_lpc_init(), and mainboard_final().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_spd_offset()

int get_spd_offset ( void  )

Definition at line 25 of file gpio_ftns.c.

◆ read_gpio()

u8 read_gpio ( u8  gpio)

Definition at line 20 of file gpio_ftns.c.

References gpio_100_read8(), and GPIO_DATA_IN.

Referenced by get_spd_offset().

Here is the call graph for this function:
Here is the caller graph for this function: