gpio.h 486 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2015 Google, Inc
  4. */
  5. #ifndef _ASM_ARCH_GPIO_H
  6. #define _ASM_ARCH_GPIO_H
  7. struct rockchip_gpio_regs {
  8. u32 swport_dr;
  9. u32 swport_ddr;
  10. u32 reserved0[(0x30 - 0x08) / 4];
  11. u32 inten;
  12. u32 intmask;
  13. u32 inttype_level;
  14. u32 int_polarity;
  15. u32 int_status;
  16. u32 int_rawstatus;
  17. u32 debounce;
  18. u32 porta_eoi;
  19. u32 ext_port;
  20. u32 reserved1[(0x60 - 0x54) / 4];
  21. u32 ls_sync;
  22. };
  23. check_member(rockchip_gpio_regs, ls_sync, 0x60);
  24. #endif