gpio.h 589 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2012
  3. * Philippe Reynes <tremyfr@yahoo.fr>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __ASM_ARCH_MX27_GPIO_H
  8. #define __ASM_ARCH_MX27_GPIO_H
  9. /* GPIO registers */
  10. struct gpio_regs {
  11. u32 gpio_dir; /* DDIR */
  12. u32 ocr1;
  13. u32 ocr2;
  14. u32 iconfa1;
  15. u32 iconfa2;
  16. u32 iconfb1;
  17. u32 iconfb2;
  18. u32 gpio_dr; /* DR */
  19. u32 gius;
  20. u32 gpio_psr; /* SSR */
  21. u32 icr1;
  22. u32 icr2;
  23. u32 imr;
  24. u32 isr;
  25. u32 gpr;
  26. u32 swr;
  27. u32 puen;
  28. u32 res[0x2f];
  29. };
  30. /* This structure is used by the function imx_gpio_mode */
  31. struct gpio_port_regs {
  32. struct gpio_regs port[6];
  33. };
  34. #endif