1
0

gpio_gk7102c_t_rtos.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #ifndef GPIO_CFG_GK7101CT_V1_H
  2. #define GPIO_CFG_GK7101CT_V1_H
  3. #include "adi_types.h"
  4. #include "adi_gpio.h"
  5. #define SYSTEM_USE_EXTERN_I2S 1
  6. #define SYSTEM_USE_SDCARD 0
  7. #define SYSTEM_GPIO_INTPHY_TABLE 0
  8. #if SYSTEM_USE_EXTERN_I2S == 1
  9. #define SYSTEM_GPIO_I2S_TABLE \
  10. #else
  11. #define SYSTEM_GPIO_I2S_TABLE \
  12. #endif
  13. #ifdef CONFIG_PHY_USE_AO_MCLK
  14. #define SYSTEM_GPIO_PHY_CLK GADI_GPIO_TYPE_UNDEFINED
  15. #endif
  16. #ifdef CONFIG_PHY_USE_SD_CLK
  17. #define SYSTEM_GPIO_PHY_CLK GADI_GPIO_TYPE_UNDEFINED
  18. #endif
  19. #ifdef CONFIG_PHY_USE_EXTERN_CLK
  20. #define SYSTEM_GPIO_PHY_CLK GADI_GPIO_TYPE_UNDEFINED
  21. #endif
  22. #define SYSTEM_GPIO_EXTPHY_TABLE \
  23. { GADI_GPIO_18, GADI_GPIO_TYPE_OUTPUT_EPHY_LED_0 },
  24. #define SYSTEM_GPIO_INTPHY_TABLE \
  25. { GADI_GPIO_18, GADI_GPIO_TYPE_OUTPUT_EPHY_LED_0 },
  26. #define SYSTEM_GPIO_XREF_TABLE \
  27. { GADI_GPIO_0 , GADI_GPIO_TYPE_OUTPUT_SF_CS0 }, \
  28. { GADI_GPIO_1 , GADI_GPIO_TYPE_UNDEFINED /*sensor rst*/ }, \
  29. { GADI_GPIO_2 , GADI_GPIO_TYPE_INOUT_I2C_DATA }, \
  30. { GADI_GPIO_3 , GADI_GPIO_TYPE_INOUT_I2C_CLK }, \
  31. { GADI_GPIO_4 , GADI_GPIO_TYPE_INOUT_I2C_CLK2 }, \
  32. { GADI_GPIO_5 , GADI_GPIO_TYPE_INOUT_I2C_DATA2 }, \
  33. { GADI_GPIO_6, GADI_GPIO_TYPE_UNDEFINED }, \
  34. { GADI_GPIO_7, GADI_GPIO_TYPE_UNDEFINED }, \
  35. { GADI_GPIO_8, GADI_GPIO_TYPE_UNDEFINED }, \
  36. { GADI_GPIO_9 , GADI_GPIO_TYPE_UNDEFINED }, \
  37. { GADI_GPIO_10, GADI_GPIO_TYPE_UNDEFINED }, \
  38. { GADI_GPIO_11, GADI_GPIO_TYPE_UNDEFINED }, \
  39. { GADI_GPIO_12, GADI_GPIO_TYPE_UNDEFINED }, \
  40. { GADI_GPIO_13, GADI_GPIO_TYPE_UNDEFINED }, \
  41. { GADI_GPIO_14, GADI_GPIO_TYPE_UNDEFINED/* IR_CUT+*/ }, \
  42. { GADI_GPIO_15, GADI_GPIO_TYPE_UNDEFINED }, \
  43. { GADI_GPIO_16, GADI_GPIO_TYPE_UNDEFINED }, \
  44. { GADI_GPIO_17, GADI_GPIO_TYPE_UNDEFINED/*IR_CUT-*/ }, \
  45. SYSTEM_GPIO_INTPHY_TABLE\
  46. { GADI_GPIO_19, GADI_GPIO_TYPE_UNDEFINED }, \
  47. { GADI_GPIO_20, GADI_GPIO_TYPE_UNDEFINED }, \
  48. { GADI_GPIO_21, GADI_GPIO_TYPE_UNDEFINED }, \
  49. { GADI_GPIO_22, GADI_GPIO_TYPE_UNDEFINED }, \
  50. { GADI_GPIO_23, GADI_GPIO_TYPE_UNDEFINED }, \
  51. { GADI_GPIO_24, GADI_GPIO_TYPE_UNDEFINED }, \
  52. { GADI_GPIO_25, GADI_GPIO_TYPE_INPUT_UART0_RX }, \
  53. { GADI_GPIO_26, GADI_GPIO_TYPE_OUTPUT_UART0_TX }, \
  54. { GADI_GPIO_27, GADI_GPIO_TYPE_UNDEFINED }, \
  55. { GADI_GPIO_28, GADI_GPIO_TYPE_UNDEFINED }, \
  56. { GADI_GPIO_29, GADI_GPIO_TYPE_UNDEFINED }, \
  57. { GADI_GPIO_30, GADI_GPIO_TYPE_UNDEFINED }, \
  58. { GADI_GPIO_31, GADI_GPIO_TYPE_INPUT_0 /*sensor data*/}, \
  59. { GADI_GPIO_32, GADI_GPIO_TYPE_INPUT_0 /*sensor data*/}, \
  60. { GADI_GPIO_33, GADI_GPIO_TYPE_UNDEFINED }, \
  61. { GADI_GPIO_34, GADI_GPIO_TYPE_UNDEFINED }, \
  62. { GADI_GPIO_35, GADI_GPIO_TYPE_UNDEFINED }, \
  63. { GADI_GPIO_36, GADI_GPIO_TYPE_UNDEFINED }, \
  64. { GADI_GPIO_37, GADI_GPIO_TYPE_UNDEFINED }, \
  65. { GADI_GPIO_38, GADI_GPIO_TYPE_UNDEFINED }, \
  66. { GADI_GPIO_39, GADI_GPIO_TYPE_UNDEFINED }, \
  67. { GADI_GPIO_40, GADI_GPIO_TYPE_UNDEFINED }, \
  68. { GADI_GPIO_41, GADI_GPIO_TYPE_UNDEFINED }, \
  69. { GADI_GPIO_42, GADI_GPIO_TYPE_UNDEFINED }
  70. #define SYSTEM_GPIO_IR_LED_CTRL GADI_GPIO_NUM
  71. #define SYSTEM_GPIO_IR_CUT1 GADI_GPIO_14
  72. #define SYSTEM_GPIO_IR_CUT2 GADI_GPIO_17
  73. #define SYSTEM_GPIO_SENSOR_RESET GADI_GPIO_1
  74. #define SYSTEM_GPIO_PHY_RESET GADI_GPIO_NUM
  75. #define SYSTEM_GPIO_PHY_SPEED_LED GADI_GPIO_NUM
  76. #define SYSTEM_GPIO_SPI0_EN0 GADI_GPIO_NUM
  77. #define SYSTEM_GPIO_SPI1_EN0 GADI_GPIO_NUM
  78. #define SYSTEM_GPIO_USB_HOST GADI_GPIO_NUM
  79. #endif /*GPIO_CFG_GK7101CT_V1_H*/