am33xx.h 902 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This header provides constants specific to AM33XX pinctrl bindings.
  3. */
  4. #include <include/dt-bindings/pinctrl/omap.h>
  5. /* am33xx specific mux bit defines */
  6. #undef PULL_ENA
  7. #undef INPUT_EN
  8. #define PULL_DISABLE (1 << 3)
  9. #define INPUT_EN (1 << 5)
  10. #define SLEWCTRL_FAST (1 << 6)
  11. /* update macro depending on INPUT_EN and PULL_ENA */
  12. #undef PIN_OUTPUT
  13. #undef PIN_OUTPUT_PULLUP
  14. #undef PIN_OUTPUT_PULLDOWN
  15. #undef PIN_INPUT
  16. #undef PIN_INPUT_PULLUP
  17. #undef PIN_INPUT_PULLDOWN
  18. #define PIN_OUTPUT (PULL_DISABLE)
  19. #define PIN_OUTPUT_PULLUP (PULL_UP)
  20. #define PIN_OUTPUT_PULLDOWN 0
  21. #define PIN_INPUT (INPUT_EN | PULL_DISABLE)
  22. #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
  23. #define PIN_INPUT_PULLDOWN (INPUT_EN)
  24. /* undef non-existing modes */
  25. #undef PIN_OFF_NONE
  26. #undef PIN_OFF_OUTPUT_HIGH
  27. #undef PIN_OFF_OUTPUT_LOW
  28. #undef PIN_OFF_INPUT_PULLUP
  29. #undef PIN_OFF_INPUT_PULLDOWN
  30. #undef PIN_OFF_WAKEUPENABLE