Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-2.6-block.git] / include / dt-bindings / pinctrl / am43xx.h
index 46789157660b0cf1c2175ae89097017b5932c5a3..a69e310789c57f368ed962a236b8b6c592fec0be 100644 (file)
 #define INPUT_EN               (1 << 18)
 #define SLEWCTRL_SLOW          (1 << 19)
 #define SLEWCTRL_FAST          0
+#define DS0_FORCE_OFF_MODE     (1 << 24)
+#define DS0_INPUT              (1 << 25)
+#define DS0_FORCE_OUT_HIGH     (1 << 26)
 #define DS0_PULL_UP_DOWN_EN    (1 << 27)
+#define DS0_PULL_UP_SEL                (1 << 28)
 #define WAKEUP_ENABLE          (1 << 29)
 
+#define DS0_PIN_OUTPUT         (DS0_FORCE_OFF_MODE)
+#define DS0_PIN_OUTPUT_HIGH    (DS0_FORCE_OFF_MODE | DS0_FORCE_OUT_HIGH)
+#define DS0_PIN_OUTPUT_PULLUP  (DS0_FORCE_OFF_MODE | DS0_PULL_UP_DOWN_EN | DS0_PULL_UP_SEL)
+#define DS0_PIN_OUTPUT_PULLDOWN        (DS0_FORCE_OFF_MODE | DS0_PULL_UP_DOWN_EN)
+#define DS0_PIN_INPUT          (DS0_FORCE_OFF_MODE | DS0_INPUT)
+#define DS0_PIN_INPUT_PULLUP   (DS0_FORCE_OFF_MODE | DS0_INPUT | DS0_PULL_UP_DOWN_EN | DS0_PULL_UP_SEL)
+#define DS0_PIN_INPUT_PULLDOWN (DS0_FORCE_OFF_MODE | DS0_INPUT | DS0_PULL_UP_DOWN_EN)
+
 #define PIN_OUTPUT             (PULL_DISABLE)
 #define PIN_OUTPUT_PULLUP      (PULL_UP)
 #define PIN_OUTPUT_PULLDOWN    0