am33xx.h 1004 B

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