payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / pcengines / apu1 / gpio_ftns.h
blob79ed4a6d77dbfe65ff4c1acfd782bae61b2c73de
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef GPIO_FTNS_H
4 #define GPIO_FTNS_H
6 #include <stdint.h>
8 void configure_gpio(u8 gpio, u8 iomux_ftn, u8 setting);
9 u8 read_gpio(u8 gpio);
10 int get_spd_offset(void);
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
29 #endif /* GPIO_FTNS_H */