summaryrefslogtreecommitdiff
path: root/include/gpio_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpio_list.h')
-rw-r--r--include/gpio_list.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/gpio_list.h b/include/gpio_list.h
new file mode 100644
index 0000000000..6d41fb9115
--- /dev/null
+++ b/include/gpio_list.h
@@ -0,0 +1,17 @@
+/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#define GPIO(name, port, pin, flags, signal) \
+ {#name, GPIO_##port, (1 << pin), flags, signal},
+
+#define UNIMPLEMENTED(name) \
+ {#name, DUMMY_GPIO_BANK, 0, 0, NULL},
+
+/* GPIO signal list. */
+const struct gpio_info gpio_list[] = {
+ #include "gpio.wrap"
+};
+
+BUILD_ASSERT(ARRAY_SIZE(gpio_list) == GPIO_COUNT);