Kconfig 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # RDA assumes no responsibility or liability for the use of the software,
  6. # conveys no license or title under any patent, copyright, or mask work
  7. # right to the product. RDA reserves the right to make changes in the
  8. # software without notification. RDA also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. menu "HAL Configurations"
  12. config NVM_VARIANTS
  13. string "NVM variants"
  14. default ""
  15. help
  16. For each target, multiple nvm variants are supported. For each nvm
  17. variant, a separated pac file will be created.
  18. NVM variant is just a name, and the definitions are located in
  19. another configuration file. For 8910, each nvm variant will
  20. configure modem bin path and nvm prj file.
  21. config PARTINFO_JSON_PATH
  22. string "partition infomation json file path"
  23. default ""
  24. help
  25. Partition information is stored as a json file. This json file
  26. will be converted into binary file, and embedded into bootloader.
  27. There are no default value, each target should specify the
  28. partition information file.
  29. config PINMUX_JSON_PATH
  30. string "pinfunc defination json file path"
  31. default ""
  32. config PACKAGE_FILE_JSON_PATH
  33. string "package raw file config path"
  34. default "components/nvitem/8910/default/prepack/prepack.json" if SOC_8910
  35. default "components/nvitem/8811/default/prepack/prepack.json" if SOC_8811
  36. default "components/nvitem/8850/default/prepack/prepack.json" if SOC_8850
  37. config PACKAGE_FILE_APPIMG_JSON_PATH
  38. string "package raw file config path for appimg example"
  39. default ""
  40. help
  41. default "components/nvitem/8910/default/prepack/prepack_appimg.json" if SOC_8910
  42. default "components/nvitem/8811/default/prepack/prepack_appimg.json" if SOC_8811
  43. default "components/nvitem/8850/default/prepack/prepack_appimg.json" if SOC_8850 #adjusted by quectel
  44. config SUPPORT_IMS_DELTA_NV
  45. bool "ims delta nv enable"
  46. default n
  47. config SUPPORT_INNER_DELTA_NV
  48. bool "inner delta nv enable"
  49. default y if SOC_8850
  50. default y if SOC_8910
  51. default n
  52. config ENABLE_DEBUGHOST_EVENT
  53. bool "enable debughost event"
  54. default y if SOC_8910
  55. default y if SOC_8850
  56. default n
  57. config PWRKEY_POWERUP
  58. bool "power key power up enable"
  59. default y
  60. config WAKEUP_PIN_POWERUP
  61. bool "wakeup pin (psm_ext_int) power up enable"
  62. default n
  63. config SHUTDOWN_NORMAL_POWER_OFF
  64. bool "shutdown normal power off"
  65. default n
  66. help
  67. This is a normal power off mode in pmic 2720,
  68. more power consupmtion than PSM mode.
  69. config KEYPAD_CSV_PATH
  70. string "keypad defination csv file path"
  71. default "components/hal/include/8811/keypad_map_8811.csv" if SOC_8811
  72. default "components/hal/include/8910/keypad_map_8910.csv" if SOC_8910
  73. config PWRKEY_TIE_GND
  74. bool "power key tied to GND"
  75. default y
  76. help
  77. When power key is tied to GND, this should be selected. In this
  78. case, PWRKEY_WAKEUP_PSM should be deselected. Otherwise, PSM sleep
  79. will be wakeup immediately.
  80. config PWRKEY_WAKEUP_PSM
  81. bool "power key wakeup psm"
  82. depends on !PWRKEY_TIE_GND
  83. default n
  84. help
  85. When selected, power key will wakeup system from PSN sleep.
  86. config CHARGER_POWERUP
  87. bool "charger powerup the chip"
  88. default y
  89. if SOC_8850
  90. config MED_CODE_ENCRYPT
  91. bool "enable med encrypt code"
  92. default n
  93. endif
  94. if SOC_8811
  95. config MED_CODE_ENCRYPT
  96. bool "enable med encrypt code"
  97. default n
  98. config LV_SUPPORT
  99. bool "support dcdc lower vol set"
  100. default n
  101. help
  102. Whether LV is supported
  103. config PM2_IND_GPIO
  104. int "gpio to indicate pm2 sleep"
  105. default -1
  106. help
  107. It is a GPIO to indicate PM2 sleep. At PM2 sleep, the GPIO will
  108. output low, and the GPIO will output high at PM0. When it is
  109. connected with a LED, the LED can indicate PM2 sleep.
  110. When it is negative, this feature is disabled.
  111. config PM3_IND_GPIO
  112. int "gpio to indicate pm3 sleep"
  113. default -1
  114. help
  115. It is a GPIO to indicate PM3 sleep. At PM3 sleep, the GPIO will
  116. output low, and the GPIO will output high at PM0 or PM2. When it
  117. is connected with a LED, the LED can indicate PM3 sleep.
  118. When it is negative, this feature is disabled.
  119. endif
  120. if SOC_8910
  121. config PMIC_INTR_GPIO
  122. int "GPIO for PMIC interrupt"
  123. default 6
  124. config SLEEP32K_GPIO
  125. int "GPIO for sleep 32K wakeup"
  126. default 7
  127. config TST_H_GROUND
  128. bool "tst_h to the ground"
  129. default n
  130. config CP_LTE_NBIOT_SUPPORT
  131. bool "CP Support Nbiot"
  132. default n
  133. config GPIO4_FORCE_PULL_UP
  134. bool "gpio4 (for sim detect) force pull up"
  135. default n
  136. config CAMA_POWER_ON_INIT
  137. bool "open CAMA power when init"
  138. default n
  139. config CAMA_CLK_FOR_AUDIO
  140. bool "open camera clock for audio"
  141. default n
  142. config GPIO_X_USED_FOR_VBAT_RF
  143. int "GPIO x is used for Vbat_RF switch"
  144. default 8
  145. help
  146. Then set gpio used for Vbat_RF switch.
  147. config GPIO_USED_FOR_VBAT_RF_SWITCH
  148. bool "Whether GPIO x is used for Vbat_RF switch"
  149. #Edit by quectel.Vbat_RF is no used.
  150. # default y
  151. default n
  152. help
  153. Then set gpio used for Vbat_RF switch.
  154. endif
  155. config TRUSTZONE_SUPPORT
  156. bool "trust zone support"
  157. default n
  158. help
  159. Support trust zone feature or not, if support the
  160. partition layout must have corresponding region.
  161. if TRUSTZONE_SUPPORT
  162. config TRUSTZONE_SML_TOS_DIR
  163. string "trust zone sml and tos bin file dir"
  164. default ""
  165. endif
  166. config SYS_WDT_TIMEOUT
  167. int "sys_wdt timeout"
  168. default 10000
  169. help
  170. sys_wdt will always be enabled to trigger blue screen on system hang.
  171. This is the watchdog timeout.
  172. The default strategy of watchdog feed is in low priority thread. So,
  173. this timeout should be relative large, not to hit by system busy.
  174. config SYS_WDT_FEED_INTERVAL
  175. int "sys_wdt feed interval"
  176. default 5000
  177. help
  178. This is the interval to feed sys_wdt.
  179. config UNITY_OUTPUT_UART
  180. bool "unity output to uart"
  181. default y
  182. help
  183. Send unity output to uart. When unselected, unity output will be
  184. mixed into log.
  185. if UNITY_OUTPUT_UART
  186. choice
  187. prompt "unity unit test uart"
  188. default UNITY_UART1
  189. config UNITY_UART1
  190. bool "UART1"
  191. config UNITY_UART2
  192. bool "UART2"
  193. config UNITY_UART3
  194. bool "UART3"
  195. config UNITY_UART4
  196. bool "UART4"
  197. config UNITY_UART5
  198. bool "UART5"
  199. endchoice
  200. config UNITY_UART_NAME
  201. string
  202. default "DRV_NAME_UART1" if UNITY_UART1
  203. default "DRV_NAME_UART2" if UNITY_UART2
  204. default "DRV_NAME_UART3" if UNITY_UART3
  205. default "DRV_NAME_UART4" if UNITY_UART4
  206. default "DRV_NAME_UART5" if UNITY_UART5
  207. default ""
  208. config UNITY_UART_BAUD
  209. int "unity unit test uart baud rate"
  210. default 115200
  211. endif
  212. if BT_SLEEPTIME_SYNC_WITH_AP
  213. config AP_SLEEP_SYNC_WITH_BT_SLEEPTIME
  214. bool "ap must wakeup before bt sleeptime expire"
  215. default y
  216. endif
  217. #quectel update
  218. config SYS_WDT_ENABLE
  219. bool "whether to enable sys_wdt"
  220. default y
  221. help
  222. sys_wdt is a mechanism to trigger blue screen when system is not
  223. responsibile. Typically, it is implemented by NMI interrupt or FIQ.
  224. endmenu