Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. menuconfig PKG_USING_WIFI_HOST_DRIVER
  2. bool "Using Wifi-Host-Driver(WHD)"
  3. select RT_USING_WIFI
  4. select RT_USING_SAL
  5. select RT_USING_SDIO
  6. select BSP_USING_SDIO
  7. default n
  8. if PKG_USING_WIFI_HOST_DRIVER
  9. choice
  10. prompt "Select Chips"
  11. default WHD_USING_CHIP_CYW43438
  12. config WHD_USING_CHIP_CYW43438
  13. bool "CYW43438"
  14. config WHD_USING_CHIP_CYW4373
  15. bool "CYW4373"
  16. config WHD_USING_CHIP_CYW43012
  17. bool "CYW43012"
  18. config WHD_USING_CHIP_CYW43439
  19. bool "CYW43439"
  20. config WHD_USING_CHIP_CYW43022
  21. bool "CYW43022"
  22. config WHD_USING_CHIP_CYW4343W
  23. bool "CYW4343W"
  24. endchoice
  25. menuconfig WHD_RESOURCES_IN_EXTERNAL_STORAGE
  26. bool "Using resources in external storage(FAL)"
  27. select RT_USING_FAL
  28. default n
  29. if WHD_RESOURCES_IN_EXTERNAL_STORAGE
  30. config WHD_RESOURCES_FIRMWARE_NAME
  31. string "Set the partition name of the firmware files"
  32. default "whd_firmware"
  33. config WHD_RESOURCES_CLM_NAME
  34. string "Set the partition name of the clm files"
  35. default "whd_clm"
  36. config WHD_RESOURCES_BLOCK_SIZE
  37. int "Set the block size for resources"
  38. default 1024
  39. endif
  40. config WHD_RESOURCES_CUSTOM_NVRAM
  41. bool "Using custom nvram files"
  42. default n
  43. config CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
  44. bool "Default enable powersave mode"
  45. default n
  46. if CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
  47. config CY_WIFI_DEFAULT_PM2_SLEEP_RET_TIME
  48. int "Set return to sleep delay.(PM2)"
  49. default 200
  50. endif
  51. config CY_WIFI_WHD_THREAD_PRIORITY
  52. int "The priority level value of WHD thread"
  53. range 0 32
  54. default 8
  55. config CY_WIFI_WHD_THREAD_STACK_SIZE
  56. int "The stack size for WHD thread"
  57. range 0 8192
  58. default 5120
  59. choice
  60. prompt "Select the pin name or number"
  61. default CYBSP_USING_PIN_NUMBER
  62. config CYBSP_USING_PIN_NAME
  63. bool "Name"
  64. config CYBSP_USING_PIN_NUMBER
  65. bool "Number"
  66. endchoice
  67. if CYBSP_USING_PIN_NAME
  68. config CYBSP_REG_ON_PIN_NAME
  69. string "Set the WiFi_REG ON pin name"
  70. default "PA.0"
  71. config CYBSP_HOST_WAKE_IRQ_PIN_NAME
  72. string "Set the HOST_WAKE_IRQ pin name"
  73. default "PA.1"
  74. endif
  75. if CYBSP_USING_PIN_NUMBER
  76. config CYBSP_REG_ON_PIN
  77. int "Set the WiFi_REG ON pin number"
  78. default -1
  79. config CYBSP_HOST_WAKE_IRQ_PIN
  80. int "Set the HOST_WAKE_IRQ pin number"
  81. default -1
  82. endif
  83. choice
  84. prompt "Select HOST_WAKE_IRQ event type"
  85. default CYBSP_HOST_WAKE_IRQ_EVENT_FALLING
  86. config CYBSP_HOST_WAKE_IRQ_EVENT_FALL
  87. bool "falling"
  88. config CYBSP_HOST_WAKE_IRQ_EVENT_RISE
  89. bool "rising"
  90. config CYBSP_HOST_WAKE_IRQ_EVENT_BOTH
  91. bool "rising and falling"
  92. endchoice
  93. config CYBSP_OOB_INTR_PRIORITY
  94. int "Set the interrput priority for HOST_WAKE_IRQ pin"
  95. default 2
  96. config CY_WIFI_USING_THREAD_INIT
  97. bool "Using thread initialization"
  98. default n
  99. if CY_WIFI_USING_THREAD_INIT
  100. config CY_WIFI_INIT_THREAD_STACK_SIZE
  101. int "The stack size for init thread"
  102. range 0 8192
  103. default 2048
  104. endif
  105. endif