Debian Codegraph @

src/mainboard/intel/emeraldlake2/gpio.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef EMERALDLAKE2_GPIO_H
4 #define EMERALDLAKE2_GPIO_H
5
6 #include <southbridge/intel/common/gpio.h>
7
8 static const struct pch_gpio_set1 pch_gpio_set1_mode = {
9 .gpio0 = GPIO_MODE_GPIO,
10 .gpio1 = GPIO_MODE_GPIO,
11 .gpio3 = GPIO_MODE_GPIO,
12 .gpio5 = GPIO_MODE_GPIO,
13 .gpio6 = GPIO_MODE_GPIO,
14 .gpio7 = GPIO_MODE_GPIO,
15 .gpio8 = GPIO_MODE_GPIO,
16 .gpio9 = GPIO_MODE_GPIO,
17 .gpio12 = GPIO_MODE_GPIO,
18 .gpio15 = GPIO_MODE_GPIO,
19 .gpio21 = GPIO_MODE_GPIO,
20 .gpio22 = GPIO_MODE_GPIO,
21 .gpio24 = GPIO_MODE_GPIO,
22 .gpio27 = GPIO_MODE_GPIO,
23 .gpio28 = GPIO_MODE_GPIO,
24 };
25
26 static const struct pch_gpio_set1 pch_gpio_set1_direction = {
27 .gpio0 = GPIO_DIR_INPUT,
28 .gpio3 = GPIO_DIR_INPUT,
29 .gpio5 = GPIO_DIR_INPUT,
30 .gpio7 = GPIO_DIR_INPUT,
31 .gpio8 = GPIO_DIR_INPUT,
32 .gpio9 = GPIO_DIR_INPUT,
33 .gpio12 = GPIO_DIR_INPUT,
34 .gpio15 = GPIO_DIR_INPUT,
35 .gpio21 = GPIO_DIR_INPUT,
36 .gpio22 = GPIO_DIR_INPUT,
37 .gpio27 = GPIO_DIR_INPUT,
38 };
39
40 static const struct pch_gpio_set1 pch_gpio_set1_level = {
41 };
42
43 static const struct pch_gpio_set1 pch_gpio_set1_invert = {
44 };
45
46 static const struct pch_gpio_set2 pch_gpio_set2_mode = {
47 .gpio36 = GPIO_MODE_GPIO,
48 .gpio48 = GPIO_MODE_GPIO,
49 .gpio57 = GPIO_MODE_GPIO,
50 .gpio60 = GPIO_MODE_GPIO,
51 };
52
53 static const struct pch_gpio_set2 pch_gpio_set2_direction = {
54 .gpio48 = GPIO_DIR_INPUT,
55 .gpio57 = GPIO_DIR_INPUT,
56 };
57
58 static const struct pch_gpio_set2 pch_gpio_set2_level = {
59 };
60
61 static const struct pch_gpio_set3 pch_gpio_set3_mode = {
62 };
63
64 static const struct pch_gpio_set3 pch_gpio_set3_direction = {
65 };
66
67 static const struct pch_gpio_set3 pch_gpio_set3_level = {
68 };
69
70 const struct pch_gpio_map mainboard_gpio_map = {
71 .set1 = {
72 .mode = &pch_gpio_set1_mode,
73 .direction = &pch_gpio_set1_direction,
74 .level = &pch_gpio_set1_level,
75 .invert = &pch_gpio_set1_invert,
76 },
77 .set2 = {
78 .mode = &pch_gpio_set2_mode,
79 .direction = &pch_gpio_set2_direction,
80 .level = &pch_gpio_set2_level,
81 },
82 .set3 = {
83 .mode = &pch_gpio_set3_mode,
84 .direction = &pch_gpio_set3_direction,
85 .level = &pch_gpio_set3_level,
86 },
87 };
88
89 #endif