summaryrefslogtreecommitdiff
path: root/src/mainboard/kontron/ktqm77
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2019-06-15 21:39:32 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-07-18 13:48:43 +0000
commit6752b61514609efd55e7d248b7c3c7127ee43693 (patch)
tree7ceaae627f48f4fdc679ff64694d5165f97fc810 /src/mainboard/kontron/ktqm77
parent915327136858d5412c9c02bf0730578e87101d59 (diff)
mb/*/*/gpio: Use static for const structures
Autoport generates these structures as static so let's make it consistent. See also commit 128205fd with Change-Id I83382d38a4a3b7ed11b8e7077cc5fbe154e261a7 ("autoport/bd82x6x.go: Improve gpio.c generation"). Change-Id: I4e07bd755ca4a65b76c69625d235a879fe7b43cb Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33524 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/kontron/ktqm77')
-rw-r--r--src/mainboard/kontron/ktqm77/gpio.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mainboard/kontron/ktqm77/gpio.c b/src/mainboard/kontron/ktqm77/gpio.c
index 05c66577c6..4b886575a2 100644
--- a/src/mainboard/kontron/ktqm77/gpio.c
+++ b/src/mainboard/kontron/ktqm77/gpio.c
@@ -23,7 +23,7 @@
* system with vendor supplied firmware.
*/
-const struct pch_gpio_set1 pch_gpio_set1_mode = {
+static const struct pch_gpio_set1 pch_gpio_set1_mode = {
.gpio0 = GPIO_MODE_GPIO, /* Unknown Input */
.gpio1 = GPIO_MODE_GPIO, /* Unknown Input */
.gpio2 = GPIO_MODE_GPIO, /* Unknown Input */
@@ -59,7 +59,7 @@ const struct pch_gpio_set1 pch_gpio_set1_mode = {
.gpio31 = GPIO_MODE_NATIVE /* Native - ACPRESENT */
};
-const struct pch_gpio_set1 pch_gpio_set1_direction = {
+static const struct pch_gpio_set1 pch_gpio_set1_direction = {
.gpio0 = GPIO_DIR_INPUT, /* Unknown Input */
.gpio1 = GPIO_DIR_INPUT, /* Unknown Input */
.gpio2 = GPIO_DIR_INPUT, /* Unknown Input */
@@ -94,7 +94,7 @@ const struct pch_gpio_set1 pch_gpio_set1_direction = {
.gpio31 = GPIO_DIR_INPUT, /* Native */
};
-const struct pch_gpio_set1 pch_gpio_set1_level = {
+static const struct pch_gpio_set1 pch_gpio_set1_level = {
.gpio0 = GPIO_LEVEL_LOW, /* Unknown Input */
.gpio1 = GPIO_LEVEL_LOW, /* Unknown Input */
.gpio2 = GPIO_LEVEL_LOW, /* Unknown Input */
@@ -129,7 +129,7 @@ const struct pch_gpio_set1 pch_gpio_set1_level = {
.gpio31 = GPIO_LEVEL_LOW, /* Native */
};
-const struct pch_gpio_set2 pch_gpio_set2_mode = {
+static const struct pch_gpio_set2 pch_gpio_set2_mode = {
.gpio32 = GPIO_MODE_NATIVE, /* Native - CLKRUN# pin */
.gpio33 = GPIO_MODE_GPIO, /* Unknown Output LOW */
.gpio34 = GPIO_MODE_GPIO, /* Unknown Input */
@@ -164,7 +164,7 @@ const struct pch_gpio_set2 pch_gpio_set2_mode = {
.gpio63 = GPIO_MODE_NATIVE, /* Native - SLP_S5# */
};
-const struct pch_gpio_set2 pch_gpio_set2_direction = {
+static const struct pch_gpio_set2 pch_gpio_set2_direction = {
.gpio32 = GPIO_DIR_INPUT, /* Native */
.gpio33 = GPIO_DIR_OUTPUT, /* Unknown Output LOW */
.gpio34 = GPIO_DIR_INPUT, /* Unknown Input */
@@ -199,7 +199,7 @@ const struct pch_gpio_set2 pch_gpio_set2_direction = {
.gpio63 = GPIO_DIR_INPUT, /* Native */
};
-const struct pch_gpio_set2 pch_gpio_set2_level = {
+static const struct pch_gpio_set2 pch_gpio_set2_level = {
.gpio32 = GPIO_LEVEL_LOW, /* Native */
.gpio33 = GPIO_LEVEL_LOW, /* Unknown Output LOW */
.gpio34 = GPIO_LEVEL_LOW, /* Unknown Input */
@@ -234,7 +234,7 @@ const struct pch_gpio_set2 pch_gpio_set2_level = {
.gpio63 = GPIO_LEVEL_LOW, /* Native */
};
-const struct pch_gpio_set3 pch_gpio_set3_mode = {
+static const struct pch_gpio_set3 pch_gpio_set3_mode = {
.gpio64 = GPIO_MODE_GPIO, /* Unknown Output LOW */
.gpio65 = GPIO_MODE_GPIO, /* Unknown Output LOW */
.gpio66 = GPIO_MODE_GPIO, /* Unknown Output LOW */
@@ -249,7 +249,7 @@ const struct pch_gpio_set3 pch_gpio_set3_mode = {
.gpio75 = GPIO_MODE_NATIVE, /* Native - SML1DATA */
};
-const struct pch_gpio_set3 pch_gpio_set3_direction = {
+static const struct pch_gpio_set3 pch_gpio_set3_direction = {
.gpio64 = GPIO_DIR_OUTPUT, /* Unknown Output LOW */
.gpio65 = GPIO_DIR_OUTPUT, /* Unknown Output LOW */
.gpio66 = GPIO_DIR_OUTPUT, /* Unknown Output LOW */
@@ -264,7 +264,7 @@ const struct pch_gpio_set3 pch_gpio_set3_direction = {
.gpio75 = GPIO_DIR_INPUT, /* Native */
};
-const struct pch_gpio_set3 pch_gpio_set3_level = {
+static const struct pch_gpio_set3 pch_gpio_set3_level = {
.gpio64 = GPIO_LEVEL_LOW, /* Unknown Output LOW */
.gpio65 = GPIO_LEVEL_LOW, /* Unknown Output LOW */
.gpio66 = GPIO_LEVEL_LOW, /* Unknown Output LOW */