am33xx.h 979 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_FAST (1 << 6)
  13. /* update macro depending on INPUT_EN and PULL_ENA */
  14. #undef PIN_OUTPUT
  15. #undef PIN_OUTPUT_PULLUP
  16. #undef PIN_OUTPUT_PULLDOWN
  17. #undef PIN_INPUT
  18. #undef PIN_INPUT_PULLUP
  19. #undef PIN_INPUT_PULLDOWN
  20. #define PIN_OUTPUT (PULL_DISABLE)
  21. #define PIN_OUTPUT_PULLUP (PULL_UP)
  22. #define PIN_OUTPUT_PULLDOWN 0
  23. #define PIN_INPUT (INPUT_EN | PULL_DISABLE)
  24. #define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
  25. #define PIN_INPUT_PULLDOWN (INPUT_EN)
  26. /* undef non-existing modes */
  27. #undef PIN_OFF_NONE
  28. #undef PIN_OFF_OUTPUT_HIGH
  29. #undef PIN_OFF_OUTPUT_LOW
  30. #undef PIN_OFF_INPUT_PULLUP
  31. #undef PIN_OFF_INPUT_PULLDOWN
  32. #undef PIN_OFF_WAKEUPENABLE
  33. #endif