]> Git Repo - u-boot.git/commitdiff
ARM: DRA7: Add pinctrl register definitions
authorLokesh Vutla <[email protected]>
Thu, 4 Jun 2015 11:12:34 +0000 (16:42 +0530)
committerTom Rini <[email protected]>
Fri, 12 Jun 2015 17:02:05 +0000 (13:02 -0400)
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 <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
arch/arm/include/asm/arch-omap5/mux_dra7xx.h

index e1553879d0dfd1d948cb87a449b2ea753db6d3b3..13a8099e3f19ae1bfad56dfa72dc22b20eeda9cd 100644 (file)
 #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
This page took 0.041437 seconds and 4 git commands to generate.