3 #ifndef INTEL_COMMON_GPIO_H
4 #define INTEL_COMMON_GPIO_H
9 #define GPIO_USE_SEL 0x00
10 #define GP_IO_SEL 0x04
12 #define GPO_BLINK 0x18
14 #define GPIO_USE_SEL2 0x30
15 #define GP_IO_SEL2 0x34
17 #define GPIO_USE_SEL3 0x40
18 #define GP_IO_SEL3 0x44
20 #define GP_RST_SEL1 0x60
21 #define GP_RST_SEL2 0x64
22 #define GP_RST_SEL3 0x68
24 #define GPIO_MODE_NATIVE 0
25 #define GPIO_MODE_GPIO 1
26 #define GPIO_MODE_NONE 1
28 #define GPIO_DIR_OUTPUT 0
29 #define GPIO_DIR_INPUT 1
31 #define GPIO_NO_INVERT 0
34 #define GPIO_LEVEL_LOW 0
35 #define GPIO_LEVEL_HIGH 1
37 #define GPIO_NO_BLINK 0
40 #define GPIO_RESET_PWROK 0
41 #define GPIO_RESET_RSMRST 1
162 unsigned int get_gpios(
const int *gpio_num_array);
struct soc_gpio_map __packed
int get_gpio(int community_base, int pad0_offset)
void setup_pch_gpios(const struct pch_gpio_map *gpio)
const struct pch_gpio_map mainboard_gpio_map
void clear_gpio(int gpio_num)
unsigned int get_gpios(const int *gpio_num_array)
int gpio_is_native(int gpio_num)
void set_gpio(int gpio_num, int value)
struct pch_gpio_map::@1670 set2
const struct pch_gpio_set3 * level
const struct pch_gpio_set2 * mode
const struct pch_gpio_set2 * direction
const struct pch_gpio_set1 * level
const struct pch_gpio_set1 * direction
const struct pch_gpio_set1 * invert
struct pch_gpio_map::@1671 set3
const struct pch_gpio_set1 * mode
const struct pch_gpio_set1 * blink
struct pch_gpio_map::@1669 set1
const struct pch_gpio_set2 * reset
const struct pch_gpio_set3 * mode
const struct pch_gpio_set1 * reset
const struct pch_gpio_set3 * direction
const struct pch_gpio_set3 * reset
const struct pch_gpio_set2 * level