summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2015-06-04 16:42:34 +0530
committerTom Rini <trini@konsulko.com>2015-06-12 13:02:05 -0400
commit6ae4c3efbd6270e612cd78b9c934cc627339441b (patch)
tree84e528a9082595616f4170f7d1e7fc8cfed83656
parent1f68451ca0d3a5faca49f44cc24cd3b7420bacb8 (diff)
downloadtalos-obmc-uboot-6ae4c3efbd6270e612cd78b9c934cc627339441b.tar.gz
talos-obmc-uboot-6ae4c3efbd6270e612cd78b9c934cc627339441b.zip
ARM: DRA7: Add pinctrl register definitions
Adopting the pinctrl register definitions from Linux kernel to be consistent. Old definitions will be removed once all the pinctrl data is adapted to new definitions. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com>
-rw-r--r--arch/arm/include/asm/arch-omap5/mux_dra7xx.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-omap5/mux_dra7xx.h b/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
index e1553879d0..13a8099e3f 100644
--- a/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
+++ b/arch/arm/include/asm/arch-omap5/mux_dra7xx.h
@@ -26,6 +26,21 @@
#define WKEN (1 << 24)
#define WKDIS (0 << 24)
+#define PULL_ENA (0 << 16)
+#define PULL_DIS (1 << 16)
+#define PULL_UP (1 << 17)
+#define INPUT_EN (1 << 18)
+#define SLEWCONTROL (1 << 19)
+
+/* Active pin states */
+#define PIN_OUTPUT (0 | PULL_DIS)
+#define PIN_OUTPUT_PULLUP (PULL_UP)
+#define PIN_OUTPUT_PULLDOWN (0)
+#define PIN_INPUT (INPUT_EN | PULL_DIS)
+#define PIN_INPUT_SLEW (INPUT_EN | SLEWCONTROL)
+#define PIN_INPUT_PULLUP (PULL_ENA | INPUT_EN | PULL_UP)
+#define PIN_INPUT_PULLDOWN (PULL_ENA | INPUT_EN)
+
#define M0 0
#define M1 1
#define M2 2
OpenPOWER on IntegriCloud