coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gpio_ftns.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef GPIO_FTNS_H
4
#define GPIO_FTNS_H
5
6
#include <
stdint.h
>
7
8
void
configure_gpio
(
u8
gpio
,
u8
iomux_ftn,
u8
setting);
9
u8
read_gpio
(
u8
gpio
);
10
int
get_spd_offset
(
void
);
11
12
#define GPIO_10 10
// PE3 Reset
13
#define GPIO_11 11
// PE4 Reset
14
#define GPIO_15 15
// board rev strap ms bit
15
#define GPIO_16 16
// board rev strap ls bit
16
#define GPIO_17 17
// TP13
17
#define GPIO_18 18
// TP10
18
#define GPIO_187 187
// MODESW
19
#define GPIO_189 189
// LED1#
20
#define GPIO_190 190
// LED2#
21
#define GPIO_191 191
// LED3#
22
#define GPIO_FTN_1 0x01
23
#define GPIO_OUTPUT 0x08
24
#define GPIO_INPUT 0x28
25
#define GPIO_DATA_IN 0x80
26
#define GPIO_DATA_LOW 0x00
27
#define GPIO_DATA_HIGH 0x40
28
29
#endif
/* GPIO_FTNS_H */
configure_gpio
void configure_gpio(u8 gpio, u8 iomux_ftn, u8 setting)
Definition:
gpio_ftns.c:8
get_spd_offset
int get_spd_offset(void)
Definition:
gpio_ftns.c:25
read_gpio
u8 read_gpio(u8 gpio)
Definition:
gpio_ftns.c:20
stdint.h
u8
uint8_t u8
Definition:
stdint.h:45
gpio
Definition:
pinmux.c:36
src
mainboard
pcengines
apu1
gpio_ftns.h
Generated by
1.9.1