gpio.h 406 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2016 Freescale Semiconductor, Inc.
  4. */
  5. #ifndef __ASM_ARCH_MX7ULP_GPIO_H
  6. #define __ASM_ARCH_MX7ULP_GPIO_H
  7. struct gpio_regs {
  8. u32 gpio_pdor;
  9. u32 gpio_psor;
  10. u32 gpio_pcor;
  11. u32 gpio_ptor;
  12. u32 gpio_pdir;
  13. u32 gpio_pddr;
  14. u32 gpio_gacr;
  15. };
  16. #define IMX_GPIO_NR(port, index) ((((port)-1)*32)+((index)&31))
  17. #endif /* __ASM_ARCH_MX7ULP_GPIO_H */