13f2d1658SFlorian Vaussard /* 23f2d1658SFlorian Vaussard * This header provides constants specific to AM33XX pinctrl bindings. 33f2d1658SFlorian Vaussard */ 43f2d1658SFlorian Vaussard 5*ac25da7fSFlorian Vaussard #ifndef _DT_BINDINGS_PINCTRL_AM33XX_H 6*ac25da7fSFlorian Vaussard #define _DT_BINDINGS_PINCTRL_AM33XX_H 7*ac25da7fSFlorian Vaussard 83f2d1658SFlorian Vaussard #include <include/dt-bindings/pinctrl/omap.h> 93f2d1658SFlorian Vaussard 103f2d1658SFlorian Vaussard /* am33xx specific mux bit defines */ 113f2d1658SFlorian Vaussard #undef PULL_ENA 123f2d1658SFlorian Vaussard #undef INPUT_EN 133f2d1658SFlorian Vaussard 143f2d1658SFlorian Vaussard #define PULL_DISABLE (1 << 3) 153f2d1658SFlorian Vaussard #define INPUT_EN (1 << 5) 163f2d1658SFlorian Vaussard #define SLEWCTRL_FAST (1 << 6) 173f2d1658SFlorian Vaussard 183f2d1658SFlorian Vaussard /* update macro depending on INPUT_EN and PULL_ENA */ 193f2d1658SFlorian Vaussard #undef PIN_OUTPUT 203f2d1658SFlorian Vaussard #undef PIN_OUTPUT_PULLUP 213f2d1658SFlorian Vaussard #undef PIN_OUTPUT_PULLDOWN 223f2d1658SFlorian Vaussard #undef PIN_INPUT 233f2d1658SFlorian Vaussard #undef PIN_INPUT_PULLUP 243f2d1658SFlorian Vaussard #undef PIN_INPUT_PULLDOWN 253f2d1658SFlorian Vaussard 263f2d1658SFlorian Vaussard #define PIN_OUTPUT (PULL_DISABLE) 273f2d1658SFlorian Vaussard #define PIN_OUTPUT_PULLUP (PULL_UP) 283f2d1658SFlorian Vaussard #define PIN_OUTPUT_PULLDOWN 0 293f2d1658SFlorian Vaussard #define PIN_INPUT (INPUT_EN | PULL_DISABLE) 303f2d1658SFlorian Vaussard #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP) 313f2d1658SFlorian Vaussard #define PIN_INPUT_PULLDOWN (INPUT_EN) 323f2d1658SFlorian Vaussard 333f2d1658SFlorian Vaussard /* undef non-existing modes */ 343f2d1658SFlorian Vaussard #undef PIN_OFF_NONE 353f2d1658SFlorian Vaussard #undef PIN_OFF_OUTPUT_HIGH 363f2d1658SFlorian Vaussard #undef PIN_OFF_OUTPUT_LOW 373f2d1658SFlorian Vaussard #undef PIN_OFF_INPUT_PULLUP 383f2d1658SFlorian Vaussard #undef PIN_OFF_INPUT_PULLDOWN 393f2d1658SFlorian Vaussard #undef PIN_OFF_WAKEUPENABLE 403f2d1658SFlorian Vaussard 41*ac25da7fSFlorian Vaussard #endif 42*ac25da7fSFlorian Vaussard 43