summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra132
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2015-03-17 17:53:19 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-06-23 22:58:26 +0200
commit018216d120bc19da71e2586a7b437d56ec07494e (patch)
tree3b267edebb771d95f7883689e87ec48569a432d0 /src/soc/nvidia/tegra132
parent59aa2b191b5b510e6a0567f6d2be5d1b97195c95 (diff)
tegra: Move pinmux enum constants from tegra/pinmux.h to soc-specific pinmux.h
Since pinmux register format has changed completely for t210, move the constants to pinmux.h in soc-specific folders. BUG=chrome-os-partner:37546 BRANCH=None TEST=Compiles successfully for ryu and foster. Change-Id: Ic1680ac50fc2619657d0c610a5dfc3fb51df7286 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 7844c941a6187f884b31a8f7cc52e64268d2c732 Original-Change-Id: Icd3b2a72f3698e0772e888d9209e1fcd5d10e77d Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/260900 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Original-Trybot-Ready: Furquan Shaikh <furquan@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/10631 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/nvidia/tegra132')
-rw-r--r--src/soc/nvidia/tegra132/include/soc/pinmux.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/soc/nvidia/tegra132/include/soc/pinmux.h b/src/soc/nvidia/tegra132/include/soc/pinmux.h
index 822d091eb8..949127c404 100644
--- a/src/soc/nvidia/tegra132/include/soc/pinmux.h
+++ b/src/soc/nvidia/tegra132/include/soc/pinmux.h
@@ -24,6 +24,22 @@
#include <soc/nvidia/tegra/gpio.h>
#include <soc/nvidia/tegra/pinmux.h>
+enum {
+ PINMUX_FUNC_MASK = 3 << 0,
+
+ PINMUX_PULL_MASK = 3 << 2,
+ PINMUX_PULL_NONE = 0 << 2,
+ PINMUX_PULL_DOWN = 1 << 2,
+ PINMUX_PULL_UP = 2 << 2,
+
+ PINMUX_TRISTATE = 1 << 4,
+ PINMUX_INPUT_ENABLE = 1 << 5,
+ PINMUX_OPEN_DRAIN = 1 << 6,
+ PINMUX_LOCK = 1 << 7,
+ PINMUX_IO_RESET = 1 << 8,
+ PINMUX_RCV_SEL = 1 << 9
+};
+
/* GPIO index constants. */
#define GPIO_PORT_CONSTANTS(port) \