dw_gpio_obj.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (c) 2018, Synopsys, Inc.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef _DW_GPIO_OBJ_H_
  7. #define _DW_GPIO_OBJ_H_
  8. #include "device/designware/gpio/dw_gpio.h"
  9. /**
  10. * \name Designware GPIO Port Bank Control Macros
  11. * @{
  12. */
  13. #define USE_DW_GPIO_PORT_A 1
  14. #define USE_DW_GPIO_PORT_B 1
  15. #define USE_DW_GPIO_PORT_C 1
  16. #define USE_DW_GPIO_PORT_D 1
  17. /** @} end of name */
  18. /**
  19. * \name Designware GPIO Port Interrupt Available Number Macros
  20. * @{
  21. */
  22. #define EMSK_GPIO_A_INT_MAX_COUNT 32
  23. #define EMSK_GPIO_B_INT_MAX_COUNT 0
  24. #define EMSK_GPIO_C_INT_MAX_COUNT 0
  25. #define EMSK_GPIO_D_INT_MAX_COUNT 0
  26. /** @} end of name */
  27. /**
  28. * \name Designware GPIO Port Available Bits Macros
  29. * @{
  30. */
  31. #define EMSK_GPIO_A_VALID_MASK DW_GPIO_MASK_ALL
  32. #define EMSK_GPIO_B_VALID_MASK DW_GPIO_MASK_ALL
  33. #define EMSK_GPIO_C_VALID_MASK DW_GPIO_MASK_ALL
  34. #define EMSK_GPIO_D_VALID_MASK DW_GPIO_MASK_ALL
  35. /** @} end of name */
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. extern void dw_gpio_all_install(void);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif /* _DW_GPIO_OBJ_H_*/