summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra132/gpio.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2014-07-31 14:54:12 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-03-24 15:27:40 +0100
commit401b3b6ea66731c3d665659d869ed06008db19e6 (patch)
tree4829aa08420e52d0956e1e10531324f054d1c9f7 /src/soc/nvidia/tegra132/gpio.h
parentaee84263363e4fdc2b7e4762f0b4c7c68a48bea1 (diff)
tegra132: provide pad configuration interface
Instead of sprinkling the pad configuration and pinmux selection throughout the code allow for a data-driven initialization sequence. Most of the calls in the original pinmux functions require 12 bytes per pad plus the support code. This implementation allows for 4 bytes per pad in addition to the support code. BUG=chrome-os-partner:29981 TEST=Built and booted into depthcharge on rush. Change-Id: I22c243a5f9891a97e14b78d8c8064e36adaf50b8 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 9329c17bbadcaab803b38842e38e1704d262817d Original-Change-Id: I3a119b4068e880b74a0a1597f143d7c4e108a6c1 Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/210833 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/8875 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/nvidia/tegra132/gpio.h')
-rw-r--r--src/soc/nvidia/tegra132/gpio.h47
1 files changed, 1 insertions, 46 deletions
diff --git a/src/soc/nvidia/tegra132/gpio.h b/src/soc/nvidia/tegra132/gpio.h
index 5563d65c77..4b78b61f2c 100644
--- a/src/soc/nvidia/tegra132/gpio.h
+++ b/src/soc/nvidia/tegra132/gpio.h
@@ -20,51 +20,6 @@
#ifndef __SOC_NVIDIA_TEGRA132_GPIO_H__
#define __SOC_NVIDIA_TEGRA132_GPIO_H__
-#include <soc/nvidia/tegra/gpio.h>
-#include <stdint.h>
-
-#include "pinmux.h" /* for pinmux constants in GPIO macro */
-
-/* GPIO index constants. */
-
-#define GPIO_PORT_CONSTANTS(port) \
- GPIO_##port##0_INDEX, GPIO_##port##1_INDEX, GPIO_##port##2_INDEX, \
- GPIO_##port##3_INDEX, GPIO_##port##4_INDEX, GPIO_##port##5_INDEX, \
- GPIO_##port##6_INDEX, GPIO_##port##7_INDEX
-
-enum {
- GPIO_PORT_CONSTANTS(A),
- GPIO_PORT_CONSTANTS(B),
- GPIO_PORT_CONSTANTS(C),
- GPIO_PORT_CONSTANTS(D),
- GPIO_PORT_CONSTANTS(E),
- GPIO_PORT_CONSTANTS(F),
- GPIO_PORT_CONSTANTS(G),
- GPIO_PORT_CONSTANTS(H),
- GPIO_PORT_CONSTANTS(I),
- GPIO_PORT_CONSTANTS(J),
- GPIO_PORT_CONSTANTS(K),
- GPIO_PORT_CONSTANTS(L),
- GPIO_PORT_CONSTANTS(M),
- GPIO_PORT_CONSTANTS(N),
- GPIO_PORT_CONSTANTS(O),
- GPIO_PORT_CONSTANTS(P),
- GPIO_PORT_CONSTANTS(Q),
- GPIO_PORT_CONSTANTS(R),
- GPIO_PORT_CONSTANTS(S),
- GPIO_PORT_CONSTANTS(T),
- GPIO_PORT_CONSTANTS(U),
- GPIO_PORT_CONSTANTS(V),
- GPIO_PORT_CONSTANTS(W),
- GPIO_PORT_CONSTANTS(X),
- GPIO_PORT_CONSTANTS(Y),
- GPIO_PORT_CONSTANTS(Z),
- GPIO_PORT_CONSTANTS(AA),
- GPIO_PORT_CONSTANTS(BB),
- GPIO_PORT_CONSTANTS(CC),
- GPIO_PORT_CONSTANTS(DD),
- GPIO_PORT_CONSTANTS(EE),
- GPIO_PORT_CONSTANTS(FF)
-};
+#include <soc/nvidia/tegra132/pinmux.h>
#endif /* __SOC_NVIDIA_TEGRA132_GPIO_H__ */