Kconfig 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. menu "Hardware Drivers Config"
  2. menu "On-chip Peripheral Drivers"
  3. source "$(BSP_DIR)/../libraries/m460/rtt_port/Kconfig"
  4. endmenu
  5. menu "On-board Peripheral Drivers"
  6. config BSP_USING_NULINKME
  7. bool "Enable UART0 for RTT Console(uart0)"
  8. select BSP_USING_UART
  9. select BSP_USING_UART0
  10. default y
  11. config BOARD_USING_RTL8201FI
  12. bool "Enable Ethernet phy supporting(over emac/mdio)"
  13. select BSP_USING_EMAC
  14. default n
  15. config BOARD_USING_NAU8822
  16. bool "NAU8822 Audio Codec supporting(over i2s0, i2c2)"
  17. select NU_PKG_USING_NAU8822
  18. select BSP_USING_I2C2
  19. select BSP_USING_I2S
  20. select BSP_USING_I2S0
  21. default n
  22. config BOARD_USING_STORAGE_SDCARD
  23. bool "SDCARD supporting(over sdh0)"
  24. select BSP_USING_SDH
  25. select BSP_USING_SDH0
  26. default n
  27. config BOARD_USING_STORAGE_SPIFLASH
  28. bool "SPIFLASH supporting(over qspi0)"
  29. select BSP_USING_QSPI
  30. select BSP_USING_QSPI0
  31. default y
  32. config BOARD_USING_CANFD0
  33. bool "CAN-FD supporting(over canfd0)"
  34. select BSP_USING_CANFD
  35. select BSP_USING_CANFD0
  36. default y
  37. config BOARD_USING_EXTERNAL_HYPERRAM
  38. bool "External HyperRAM supporting(over hbi)"
  39. select BSP_USING_HBI
  40. default y
  41. if BOARD_USING_EXTERNAL_HYPERRAM
  42. config BOARD_USING_HYPERRAM_SIZE
  43. int "How many HyperRAM capacity in bytes"
  44. range 8388608 33554432
  45. default 8388608
  46. endif
  47. config BOARD_USING_NCT7717U
  48. bool "Thermal Sensor(over i2c2)"
  49. select NU_PKG_USING_NCT7717U
  50. select BSP_USING_I2C
  51. select BSP_USING_I2C2
  52. default y
  53. config BOARD_USING_USB_D_H
  54. bool "Enable USB Device or Host function"
  55. help
  56. Choose this option if you need USB function.
  57. if BOARD_USING_USB_D_H
  58. choice
  59. prompt "Select FS/HS USB Ports"
  60. config BOARD_USING_HSUSBD
  61. select BSP_USING_HSUSBD
  62. bool "Enable HSUSBD(over USB2.0)"
  63. help
  64. Choose this option if you need HSUSBD function mode.
  65. config BOARD_USING_HSUSBD_USBH
  66. select BSP_USING_USBH
  67. select BSP_USING_HSUSBD
  68. bool "Enable HSUSBD(over USB2.0) and USBH(over USB1.1)"
  69. help
  70. Choose this option if you need HSUSBD and USBH function mode at the same time.
  71. config BOARD_USING_HSUSBH
  72. select BSP_USING_HSUSBH
  73. bool "Enable HSUSBH(over USB2.0)"
  74. help
  75. Choose this option if you need HSUSBH function mode.
  76. config BOARD_USING_HSUSBH_USBD
  77. select BSP_USING_HSUSBH
  78. select BSP_USING_USBD
  79. bool "Enable HSUSBH(over USB2.0) and USBD(over USB1.1)"
  80. help
  81. Choose this option if you need HSUSBH and USBD function mode at the same time.
  82. config BOARD_USING_HSOTG
  83. select BSP_USING_HSOTG
  84. bool "Enable HSOTG(over USB2.0)"
  85. help
  86. Choose this option if you need HSOTG function mode.
  87. endchoice
  88. endif
  89. endmenu
  90. menu "Board extended module drivers"
  91. config BOARD_USING_LCD_SSD1963
  92. bool "LCD SSD1963(over ebi0)"
  93. select NU_PKG_USING_SSD1963
  94. select NU_PKG_USING_SSD1963_EBI
  95. select NU_PKG_SSD1963_WITH_OFFSCREEN_FRAMEBUFFER
  96. default n
  97. if BOARD_USING_LCD_SSD1963
  98. config BOARD_USING_SSD1963_EBI_PORT
  99. int "Specify EBI port index"
  100. range 0 2
  101. default 0
  102. config BOARD_USING_SSD1963_PIN_BACKLIGHT
  103. int "Specify the pin index of backlight pin index"
  104. range 0 127
  105. default 101
  106. config BOARD_USING_SSD1963_PIN_RESET
  107. int "Specify the pin index of reset pin index"
  108. range 0 127
  109. default 103
  110. config BOARD_USING_SSD1963_PIN_DC
  111. int "Specify the pin index of data&command switching"
  112. range 0 127
  113. default 119
  114. config BOARD_USING_SSD1963_PIN_DISPLAY
  115. int "Specify the pin index of display-on"
  116. range 0 127
  117. default 104
  118. endif
  119. config BOARD_USING_ILI2130
  120. bool "TPC ILI2130(over i2c1)"
  121. select BSP_USING_I2C1
  122. select NU_PKG_USING_TPC
  123. select NU_PKG_USING_TPC_ILI
  124. default n
  125. config BOARD_USING_LCD_FSA506
  126. bool "LCD FSA506(over ebi0)"
  127. select NU_PKG_USING_FSA506
  128. select NU_PKG_USING_FSA506_EBI
  129. select NU_PKG_FSA506_WITH_OFFSCREEN_FRAMEBUFFER
  130. default n
  131. if BOARD_USING_LCD_FSA506
  132. config BOARD_USING_FSA506_EBI_PORT
  133. int "Specify EBI port index"
  134. range 0 2
  135. default 0
  136. config BOARD_USING_FSA506_PIN_BACKLIGHT
  137. int "Specify the pin index of backlight pin index"
  138. range 0 127
  139. default 101
  140. config BOARD_USING_FSA506_PIN_RESET
  141. int "Specify the pin index of reset pin index"
  142. range 0 127
  143. default 103
  144. config BOARD_USING_FSA506_PIN_DC
  145. int "Specify the pin index of data&command switching"
  146. range 0 127
  147. default 119
  148. config BOARD_USING_FSA506_PIN_DISPLAY
  149. int "Specify the pin index of display-on"
  150. range 0 127
  151. default 104
  152. endif
  153. config BOARD_USING_ST1663I
  154. bool "TPC ST1663I(over i2c1)"
  155. select BSP_USING_I2C1
  156. select NU_PKG_USING_TPC
  157. select NU_PKG_USING_TPC_ST1663I
  158. default n
  159. config BOARD_USING_SENSOR0
  160. bool "CCAP-SENSOR PORT0(over i2c0/PG11/PD12)"
  161. select BSP_USING_I2C
  162. select BSP_USING_I2C0
  163. select BSP_USING_CCAP
  164. select BSP_USING_CCAP0
  165. default n
  166. config BOARD_USING_SENSON0_ID
  167. int "Specify Sensor0 ID"
  168. default 0 if BOARD_USING_SENSOR0
  169. range 0 2
  170. help
  171. HM1055=0
  172. ADV728X=1
  173. endmenu
  174. source "$(BSP_DIR)/../libraries/nu_packages/Kconfig"
  175. endmenu