summaryrefslogtreecommitdiff
path: root/include/gpio_list.h
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2016-02-22 11:37:32 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-22 23:50:53 -0800
commit98b0e13f606aefb7e2964bfa0358188d4fd31cfe (patch)
tree0262bf0687de2811839187f7b409cacacdfd3cea /include/gpio_list.h
parent8ae8dca6d4dd709c5c4909902c650f9780d113fb (diff)
downloadchrome-ec-98b0e13f606aefb7e2964bfa0358188d4fd31cfe.tar.gz
GPIO: Remove gpio_alt_funcs table from common header
Now that the cr50 no longer uses this array to store its pinmux config we can move it out of the header file, removing it from the public interface for GPIO code. This allows us to start modifying this struct more easily. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I9b4ca8b678b102bb9b63ccffe23bf2dc87aeb44a Reviewed-on: https://chromium-review.googlesource.com/328824 Commit-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/gpio_list.h')
-rw-r--r--include/gpio_list.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/gpio_list.h b/include/gpio_list.h
index a94b6e7a9c..ba0b63e321 100644
--- a/include/gpio_list.h
+++ b/include/gpio_list.h
@@ -21,19 +21,6 @@ const struct gpio_info gpio_list[] = {
BUILD_ASSERT(ARRAY_SIZE(gpio_list) == GPIO_COUNT);
-/*
- * Construct the gpio_alt_funcs array. This array is used by gpio_config_module
- * to enable and disable GPIO alternate functions on a module by module basis.
- */
-#define ALTERNATE(pinmask, function, module, flags) \
- {GPIO_##pinmask, function, module, flags},
-
-const struct gpio_alt_func gpio_alt_funcs[] = {
- #include "gpio.wrap"
-};
-
-const int gpio_alt_funcs_count = ARRAY_SIZE(gpio_alt_funcs);
-
/* GPIO Interrupt Handlers */
#define GPIO_INT(name, pin, flags, signal) signal,
void (* const gpio_irq_handlers[])(enum gpio_signal signal) = {