nomadik.h 739 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * nomadik.h
  4. *
  5. * Copyright (C) ST-Ericsson SA 2013
  6. * Author: Gabriel Fernandez <gabriel.fernandez@st.com> for ST-Ericsson.
  7. */
  8. #define INPUT_NOPULL 0
  9. #define INPUT_PULLUP 1
  10. #define INPUT_PULLDOWN 2
  11. #define OUTPUT_LOW 0
  12. #define OUTPUT_HIGH 1
  13. #define DIR_OUTPUT 2
  14. #define SLPM_DISABLED 0
  15. #define SLPM_ENABLED 1
  16. #define SLPM_INPUT_NOPULL 0
  17. #define SLPM_INPUT_PULLUP 1
  18. #define SLPM_INPUT_PULLDOWN 2
  19. #define SLPM_DIR_INPUT 3
  20. #define SLPM_OUTPUT_LOW 0
  21. #define SLPM_OUTPUT_HIGH 1
  22. #define SLPM_DIR_OUTPUT 2
  23. #define SLPM_WAKEUP_DISABLE 0
  24. #define SLPM_WAKEUP_ENABLE 1
  25. #define GPIOMODE_DISABLED 0
  26. #define GPIOMODE_ENABLED 1
  27. #define SLPM_PDIS_DISABLED 0
  28. #define SLPM_PDIS_ENABLED 1