• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#TODO optimize it
2menu "Driver"
3
4	menu "SOFTWARE_SUPPORT_CHIP"
5		config CHIP_SUPPORT
6			bool "Enable chip support"
7			default n
8	endmenu
9
10	menu "Watchdog"
11		config INT_WDT
12			bool "Enable Interrupt Watchdog"
13			default y
14
15		config INT_WDT_PERIOD_MS
16			int "Interrupt Watchdog Period(ms)"
17			default 1000
18
19		config TASK_WDT
20			bool "Enable Task Watchdog"
21			default y
22
23		config TASK_WDT_PERIOD_MS
24			int "Interrupt Watchdog Period(ms)"
25			default 60000
26
27		config NMI_WDT_EN
28			bool "Enable NMI Watchdog"
29			default n
30	endmenu
31
32	menu "AON_Watchdog"
33		config AON_WDT
34			bool "Enable AON Watchingdog"
35			default n
36
37		config INT_AON_WDT
38			bool "Enable Interrupt AON Watchdog"
39			default y
40
41		config INT_AON_WDT_PERIOD_MS
42			int "Interrupt AON Watchdog Period(ms)"
43			default 1000
44	endmenu
45
46	menu "UART"
47		config UART1
48			bool "Enable UART1"
49			default y
50		config UART1_FLOW_CTRL
51			bool "Uart1 Flow Ctrl"
52			default n
53
54		config UART2
55			bool "Enable UART2"
56			default y
57
58		config UART3
59			bool "Enable UART3"
60			default n
61
62		choice UART_PRINT_PORT
63			prompt "Debug port"
64			default PRINT_PORT_UART2
65
66			config PRINT_PORT_UART1
67				bool "UART1"
68			config PRINT_PORT_UART2
69				bool "UART2"
70			config PRINT_PORT_UART3
71				bool "UART3"
72		endchoice
73
74		config UART_PRINT_PORT
75			int
76			default 0 if PRINT_PORT_UART1
77			default 1 if PRINT_PORT_UART2
78			default 2 if PRINT_PORT_UART3
79
80		config UART_ATE_PORT
81			int "Config Uart ATE Port"
82			range 0 2
83			default 1
84			help
85			Default 1 mean use UART2
86
87		config PRINTF_BUF_SIZE
88			int "Print Buffer Size"
89			range 1 4096
90			default 128
91			help
92			The value should be changed if print size is more than 128
93
94		# TODO do we need to put it to uart_debug component?
95		config BACKGROUND_PRINT
96			bool "Enable background print"
97			default n
98
99		config KFIFO_SIZE
100			int "Kfifo Size"
101			range 1 4096
102			default 128
103			help
104				This will set kfifo size when software uses kfifo to cache data receiving.
105
106		config UART_STATIS
107			bool "Enable UART Statis"
108			default n
109	endmenu
110
111	menu "TRNG"
112		config TRNG_SUPPORT
113			bool "Support hardware TRNG"
114			default y
115	endmenu
116
117	menu "SDIO_HOST"
118		config SDIO_HOST
119			bool "Enable sdio host"
120			default n
121
122		config SDIO_HOST_DEFAULT_CLOCK_FREQ
123			int "SDIO Host default clock freq"
124			default 200000
125	endmenu
126
127	menu "SDCARD"
128		config SDCARD_HOST
129			bool "Enable SDCARD Host"
130			default y if (USB && USB_DEVICE)
131			default n if !(USB && USB_DEVICE)
132
133		choice SD_HOST_INTF
134			prompt "SD Host Interface"
135			depends on SDCARD_HOST
136			default SD_HOST_INTF
137
138			config SD_HOST_INTF
139				bool "SD Host Interface"
140
141			config SD1_HOST_INTF
142				bool "SD1 Host Interface"
143		endchoice
144
145		config SDCARD_V2P0
146			bool "Support SDCARD refactor code which version is 2.0"
147			default y
148
149		config SDCARD_V1P0
150			bool "Before SDCARD refactor code which version is 1.0"
151			default n
152
153		config SDCARD_BUSWIDTH_4LINE
154			bool "Support SDCARD 4 Data Wires"
155			default n
156	endmenu
157
158	menu "FATFS"
159		config FATFS
160			bool "Support FATFS"
161			default n
162
163		config FATFS_SDCARD
164			bool "Support SDCARD FATFS"
165			default n
166	endmenu
167
168	config MAC_PHY_BYPASS
169		bool "Enable MAC/PHY by pass mode"
170		default y
171
172	#TODO check SDIO configuration again
173	menu "SDIO"
174		config SDIO
175			bool "Enable SDIO"
176			default y if FULLY_HOSTED
177			default n if !FULLY_HOSTED
178
179		config SDIO_V1P0
180			bool "SDIO Version V1P0"
181			depends on SDIO
182			default n
183
184		config SDIO_V2P0
185			bool "SDIO Version V2P0"
186			depends on SDIO
187			default n
188
189		config SDIO_TRANS
190			bool "Enable SDIO Trans"
191			depends on SDIO
192			default n
193
194		config REAL_SDIO
195			bool "Enable Real SDIO"
196			depends on SDIO
197			default y if FULLY_HOSTED
198			default n if !FULLY_HOSTED
199
200		config SDIO_BLOCK_512
201			bool "Enable SDIO 512 Bytes Block"
202			depends on REAL_SDIO
203			default y if FULLY_HOSTED
204			default n if !FULLY_HOSTED
205
206		config SDIO_SLAVE
207			bool "Enable SDIO Slave Device, BEKEN Chip Is A SDIO Slave Device"
208			depends on SDIO
209			default n
210
211		config SDIO_CHANNEL_EN
212			bool "Enable SDIO channel"
213			depends on SDIO_SLAVE
214			default n
215
216		config SDIO_BIDIRECT_CHANNEL_EN
217			bool "Enable SDIO two derect channel"
218			depends on SDIO_CHANNEL_EN
219			default n
220
221		config SDIO_GDMA_EN
222			bool "BK7256 First Version Chip Doesn't Support GDMA"
223			depends on SDIO_SLAVE
224			default n
225
226		config GPIO_NOTIFY_TRANSACTION_EN
227			bool "Host Wake BK7256"
228			depends on SDIO
229			default y
230
231		config SDIO_4LINES_EN
232			bool "SDIO Uses 4 Lines Transfer Data"
233			depends on SDIO
234			default y
235
236		config SDIO_TEST_EN
237			bool "SDIO Test Program Enable"
238			depends on SDIO
239			default n
240
241		config SDIO_DEBUG_EN
242			bool "SDIO Debug Program Enable"
243			depends on SDIO
244			default n
245
246	endmenu
247
248	menu "SPI"
249			#TODO optimize SPI_DMA and GENERAL_DMA when optimize driver
250			config SPI_DMA
251				bool "Enable SPI DMA"
252				default y
253
254			config SPI_SLAVE
255				bool "Enable SPI Slave"
256				default y
257
258			config SPI_MASTER
259				bool "Enable SPI Master"
260				default y
261
262			config SPI_STATIS
263				bool "Enable SPI Statis"
264				default y
265
266			config SPI_SUPPORT_TX_FIFO_WR_READY
267				bool "Support TX FIFO Write Ready"
268				default y
269
270			config HSLAVE_SPI
271				bool "Enable HSlave SPI"
272				default y
273
274			config SPI_MST_FLASH
275				bool "SPI MST Flash"
276				default n
277
278			config SPI_MST_PSRAM
279				bool "SPI MST PSRAM"
280				default n
281
282	endmenu
283
284	menu "QSPI"
285			config QSPI
286				bool "Enable QSPI"
287				default n
288
289			config QSPI_STATIS
290				bool "Enable QSPI Statis"
291				default y
292	endmenu
293
294	menu "AON_RTC"
295			config AON_RTC
296				bool "Enable AON_RTC"
297				default n
298
299			config AON_RTC_MANY_USERS
300				bool "Enable AON_RTC support many users"
301				default n
302
303			config AON_RTC_TEST
304				bool "Enable AON_RTC Test,F.E:Command line test"
305				default n
306
307			config AON_RTC_DEBUG
308				bool "Enable AON_RTC Debug"
309				default n
310	endmenu
311
312	menu "GPIO"
313			config GPIO_WAKEUP_SUPPORT
314				bool "Enable GPIO WAKEUP system if at low voltage status"
315				default n
316
317			config GPIO_DYNAMIC_WAKEUP_SUPPORT
318				bool "Enable GPIO dynamic config to wake system if at low volatage status"
319				depends on GPIO_WAKEUP_SUPPORT
320				default n
321
322			config GPIO_WAKEUP_DEBUG
323				bool "Enable GPIO wakeup module debug code"
324				depends on GPIO_WAKEUP_SUPPORT
325				default n
326
327			config GPIO_DYNAMIC_WAKEUP_SOURCE_MAX_CNT
328				int "how many gpio can dynamic set to wakeup system at low power status"
329				range 0 48
330				default 4
331				help
332				The value should be changed if need more then 4 gpio
333
334			config GPIO_SIMULATE_UART_WRITE
335				bool "Enable GPIO simulate uart write data"
336				default n
337	endmenu
338
339	menu "AON_PMU"
340			config AON_PMU
341				bool "Enable AON_PMU"
342				default n
343	endmenu
344
345	menu "DMA"
346			config GENERAL_DMA
347				bool "Enable General DMA"
348				default y
349	endmenu
350
351	menu "TOUCH"
352			config TOUCH
353				bool "Enable TOUCH"
354				default n
355	endmenu
356
357	menu "SBC"
358			config SBC
359				bool "Enable SBC"
360				default n
361	endmenu
362
363	menu "JPEG_ENCODE"
364			config JPEG_ENCODE
365				bool "Enable JPEG_ENCODE"
366				default n
367	endmenu
368
369	menu "PSRAM"
370			config PSRAM
371				bool "Enable PSRAM"
372				default n
373
374	endmenu
375
376	menu "CALENDAR"
377			config CALENDAR
378				bool "Enable CALENDAR"
379				default n
380	endmenu
381
382	menu "MPC"
383			config MPC
384				bool "Enable MPC"
385				default n
386	endmenu
387
388	menu "PRRO"
389			config PRRO
390				bool "Enable PRRO"
391				default n
392	endmenu
393
394	menu "System control"
395		config SYS_REDUCE_NORMAL_POWER
396		bool "Reduce system normal power"
397		default n
398
399		choice XTAL_FREQ
400			prompt "Xtal frequence"
401			default XTAL_FREQ_26M
402
403			config XTAL_FREQ_40M
404				bool "XTAL frequency 40M"
405
406			config XTAL_FREQ_26M
407				bool "XTAL frequency 26M"
408		endchoice
409
410		#TODO fixed it
411		config XTAL_FREQ
412			int "26000000"
413			default 26000000 if XTAL_FREQ_26M
414			default 40000000 if XTAL_FREQ_40M
415
416		config DCO_FREQ
417			int "DCO frequency"
418			default 120000000
419
420		config SYSTEM_CTRL
421			bool "Enable system_ctrl"
422			default n
423
424		config POWER_CLOCK_RF
425			bool "Enable rf power clock"
426			default n
427	endmenu
428
429	menu "PHY"
430		#TODO is here the right place to put CONFIG_PTA?
431		config PTA
432		bool "Enable PTA"
433		default n
434
435		config ATE_TEST
436		    bool "Enable ATE Test"
437		    default n
438	endmenu
439
440	menu "I2S"
441		config I2S
442		bool "Enable I2S"
443		default n
444	endmenu
445
446	menu "I2C"
447		config I2C
448			bool "Enable I2C"
449			default y
450
451		config I2C_SUPPORT_ID_BITS
452			int "i2c support id bits"
453			range 1 255
454			default 1
455			help
456			The value should be changed if need to change i2c id
457
458		config FM_I2C
459			bool "Enable FM I2C"
460			default y
461	endmenu
462
463	menu "PWM"
464		config PWM
465			bool "Enable pwm"
466			default y
467
468		config PWM_HAS_TWO_INT
469			bool "Enable pwm has two int"
470			default n
471	endmenu
472
473	menu "ICU"
474		config ICU_GPIO
475			bool "Enable icu gpio"
476			default n
477	endmenu
478
479	menu "TIMER"
480		config TIMER
481			bool "Enable TIMER"
482			default y
483
484		config TIMER_COUNTER
485			bool "Enable timer counter"
486			default y
487
488		config TIMER_SUPPORT_ID_BITS
489			int "timer support id bits"
490			range 0 255
491			default 0
492			help
493			0 indicates that all IDs are supported by default, no configuration required
494	endmenu
495
496	menu "SARADC"
497		config SARADC
498			bool "Enable saradc"
499			default y
500
501		config SARADC_NEED_FLUSH
502			bool "SARADC whether need flush data"
503			default y
504
505		config SARADC_RANGE_DIVIDE
506			bool "Enable saradc measure range divide"
507			default n
508	endmenu
509
510	menu "FLASH"
511		config FLASH
512			bool "Enable flash"
513			default y
514
515		config FLASH_QUAD_ENABLE
516			bool "Enable flash quad enable"
517			default n
518
519		config FLASH_SRC_CLK_60M
520			bool "Enable flash source clock 60M"
521			default n
522
523		config FLASH_ORIGIN_API
524			bool "Enable flash old api"
525			default n
526	endmenu
527
528	config SUPPORT_IRDA
529		bool "Enable IRDA"
530		default y
531
532	config MAILBOX
533		bool "Enable mail_box"
534		default n
535
536	config LCD
537		bool "Enable LCD Display"
538		default n
539
540	config DMA2D
541		bool "Enable DMA2D"
542		default n
543
544	config JPEG_DEC
545		bool "Enable JPEGDEC Display"
546		default n
547
548	config EFUSE
549		bool "Enable efuse"
550		default y
551
552	config FFT
553		bool "Enable fft"
554		default n
555
556	config AUDIO_RISCV_IP_V1_0
557		bool "Enable audio riscv driver"
558		default n
559
560	config AUDIO_DSP_IP_V1_0
561		bool "Enable audio dsp driver"
562		default n
563
564	config CHANGE_JTAG_GPIO
565		bool "Enable change jtag group"
566		default n
567endmenu
568