-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathKconfig
575 lines (453 loc) · 19.4 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
menu "MPP Configuration"
menu "Sensor Configuration"
choice MPP_DEFAULT_SENSOR_CSI_NUM
bool "Default SENSOR on CSI"
default MPP_DEFAULT_SENSOR_CSI_0
config MPP_DEFAULT_SENSOR_CSI_0
bool "0"
config MPP_DEFAULT_SENSOR_CSI_1
bool "1"
config MPP_DEFAULT_SENSOR_CSI_2
bool "2"
endchoice
comment "Sensor Hardware Configuration"
config MPP_SENSOR_DEFAULT_CSI
int
default 0 if MPP_DEFAULT_SENSOR_CSI_0
default 1 if MPP_DEFAULT_SENSOR_CSI_1
default 2 if MPP_DEFAULT_SENSOR_CSI_2
menuconfig MPP_ENABLE_CSI_DEV_0
bool "Enable CSI0"
if MPP_ENABLE_CSI_DEV_0
config MPP_CSI_DEV0_POWER
int "CSI0 PowerDown GPIO"
default -1
help
If board have no Powerdown, set to -1
config MPP_CSI_DEV0_RESET
int "CSI0 Reset GPIO"
default -1
help
If board have no Reset, set to -1
config MPP_CSI_DEV0_I2C_DEV
string "CSI0 I2c Bus"
default "i2c0"
choice MPP_CSI_DEV0_MCLK_NUM
bool "CSI0 MCLK num"
default MPP_CSI_DEV0_MCLK_INVALID
config MPP_CSI_DEV0_MCLK_INVALID
bool "CSI0 use external clock"
config MPP_CSI_DEV0_MCLK_1
bool "CSI0 use chip MCLK1"
config MPP_CSI_DEV0_MCLK_2
bool "CSI0 use chip MCLK2"
config MPP_CSI_DEV0_MCLK_3
bool "CSI0 use chip MCLK3"
endchoice
config MPP_CSI_DEV0_MCLK_NUM
int
default -1 if MPP_CSI_DEV0_MCLK_INVALID
default 1 if MPP_CSI_DEV0_MCLK_1
default 2 if MPP_CSI_DEV0_MCLK_2
default 3 if MPP_CSI_DEV0_MCLK_3
endif
menuconfig MPP_ENABLE_CSI_DEV_1
bool "Enable CSI1"
if MPP_ENABLE_CSI_DEV_1
config MPP_CSI_DEV1_POWER
int "CSI1 PowerDown GPIO"
default -1
help
If board have no Powerdown, set to -1
config MPP_CSI_DEV1_RESET
int "CSI1 Reset GPIO"
default -1
help
If board have no Reset, set to -1
config MPP_CSI_DEV1_I2C_DEV
string "CSI1 I2c Bus"
default "i2c1"
choice MPP_CSI_DEV1_MCLK_NUM
bool "CSI1 MCLK num"
default MPP_CSI_DEV1_MCLK_INVALID
config MPP_CSI_DEV1_MCLK_INVALID
bool "CSI1 use external clock"
config MPP_CSI_DEV1_MCLK_1
bool "CSI1 use chip MCLK1"
config MPP_CSI_DEV1_MCLK_2
bool "CSI1 use chip MCLK2"
config MPP_CSI_DEV1_MCLK_3
bool "CSI1 use chip MCLK3"
endchoice
config MPP_CSI_DEV1_MCLK_NUM
int
default -1 if MPP_CSI_DEV1_MCLK_INVALID
default 1 if MPP_CSI_DEV1_MCLK_1
default 2 if MPP_CSI_DEV1_MCLK_2
default 3 if MPP_CSI_DEV1_MCLK_3
endif
menuconfig MPP_ENABLE_CSI_DEV_2
bool "Enable CSI2"
if MPP_ENABLE_CSI_DEV_2
config MPP_CSI_DEV2_POWER
int "CSI2 PowerDown GPIO"
default -1
help
If board have no Powerdown, set to -1
config MPP_CSI_DEV2_RESET
int "CSI2 Reset GPIO"
default -1
help
If board have no Reset, set to -1
config MPP_CSI_DEV2_I2C_DEV
string "CSI2 I2c Bus"
default "i2c2"
choice MPP_CSI_DEV2_MCLK_NUM
bool "CSI2 MCLK num"
default MPP_CSI_DEV2_MCLK_INVALID
config MPP_CSI_DEV2_MCLK_INVALID
bool "CSI2 use external clock"
config MPP_CSI_DEV2_MCLK_1
bool "CSI2 use chip MCLK1"
config MPP_CSI_DEV2_MCLK_2
bool "CSI2 use chip MCLK2"
config MPP_CSI_DEV2_MCLK_3
bool "CSI2 use chip MCLK3"
endchoice
config MPP_CSI_DEV2_MCLK_NUM
int
default -1 if MPP_CSI_DEV2_MCLK_INVALID
default 1 if MPP_CSI_DEV2_MCLK_1
default 2 if MPP_CSI_DEV2_MCLK_2
default 3 if MPP_CSI_DEV2_MCLK_3
endif
comment "Sensor Drivers Configuration"
menuconfig MPP_ENABLE_SENSOR_GC2093
bool "Enable GC2093"
if MPP_ENABLE_SENSOR_GC2093
config MPP_SENSOR_GC2093_ON_CSI0_USE_CHIP_CLK
bool "GC2093 On CSI0 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_0
config MPP_SENSOR_GC2093_ON_CSI1_USE_CHIP_CLK
bool "GC2093 On CSI1 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_1
config MPP_SENSOR_GC2093_ON_CSI2_USE_CHIP_CLK
bool "GC2093 On CSI2 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_2
endif
menuconfig MPP_ENABLE_SENSOR_OV5647
bool "Enable OV5647"
if MPP_ENABLE_SENSOR_OV5647
config MPP_SENSOR_OV5647_ON_CSI0_USE_CHIP_CLK
bool "OV5647 On CSI0 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_0
config MPP_SENSOR_OV5647_ON_CSI1_USE_CHIP_CLK
bool "OV5647 On CSI1 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_1
config MPP_SENSOR_OV5647_ON_CSI2_USE_CHIP_CLK
bool "OV5647 On CSI2 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_2
endif
menuconfig MPP_ENABLE_SENSOR_IMX335
bool "Enable IMX335"
if MPP_ENABLE_SENSOR_IMX335
config MPP_SENSOR_IMX335_ENABLE_4LANE_CONFIGURE
bool "IMX335 Enable 4LANE Configure"
default n
help
Default Only Enable 2LANE Configure
config MPP_SENSOR_IMX335_ON_CSI0_USE_CHIP_CLK
bool "IMX335 On CSI0 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_0
config MPP_SENSOR_IMX335_ON_CSI1_USE_CHIP_CLK
bool "IMX335 On CSI1 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_1 && !MPP_SENSOR_IMX335_ENABLE_4LANE_CONFIGURE
config MPP_SENSOR_IMX335_ON_CSI2_USE_CHIP_CLK
bool "IMX335 On CSI2 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_2
endif
menuconfig MPP_ENABLE_SENSOR_SC132GS
bool "Enable SC123GS"
default n
if MPP_ENABLE_SENSOR_SC132GS
config MPP_ENABLE_SENSOR_SC132GS_ON_CSI0_USE_CHIP_CLK
bool "SC123GS On CSI0 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_0
config MPP_ENABLE_SENSOR_SC132GS_ON_CSI1_USE_CHIP_CLK
bool "SC123GS On CSI1 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_1
config MPP_ENABLE_SENSOR_SC132GS_ON_CSI2_USE_CHIP_CLK
bool "SC123GS On CSI2 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_2
endif
menuconfig MPP_ENABLE_SENSOR_XS9950
bool "Enable XS9950"
default n
if MPP_ENABLE_SENSOR_XS9950
config MPP_ENABLE_SENSOR_XS9950_ON_CSI0_USE_CHIP_CLK
bool "XS9950 On CSI0 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_0
config MPP_ENABLE_SENSOR_XS9950_ON_CSI1_USE_CHIP_CLK
bool "XS9950 On CSI1 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_1
config MPP_ENABLE_SENSOR_XS9950_ON_CSI2_USE_CHIP_CLK
bool "XS9950 On CSI2 Use CHIP MCLK"
default n
depends on MPP_ENABLE_CSI_DEV_2
endif
menuconfig MPP_ENABLE_SENSOR_BF3238
bool "Enable BF3238"
default n
if MPP_ENABLE_SENSOR_BF3238
config MPP_ENABLE_SENSOR_BF3238_ON_CSI0_USE_CHIP_CLK
bool "BF3238 On CSI0 Use CHIP MCLK"
depends on MPP_ENABLE_CSI_DEV_0
config MPP_ENABLE_SENSOR_BF3238_ON_CSI1_USE_CHIP_CLK
bool "BF3238 On CSI1 Use CHIP MCLK"
depends on MPP_ENABLE_CSI_DEV_1
config MPP_ENABLE_SENSOR_BF3238_ON_CSI2_USE_CHIP_CLK
bool "BF3238 On CSI2 Use CHIP MCLK"
depends on MPP_ENABLE_CSI_DEV_2
endif
endmenu
menu "Dsiplay Configuration"
config MPP_ENABLE_DSI_DEBUGGER
bool "Enable DSI Debuger"
default n
select APP_ENABLE_DSI_DEBUGGER
comment "Display Hardware Configuration"
menuconfig MPP_ENABLE_DSI_HDMI
bool "Enable HDMI Display Driver"
if MPP_ENABLE_DSI_HDMI
config MPP_DSI_HDMI_RESET_PIN
int "DSI-HDMI Reset GPIO"
default 22
config MPP_DSI_HDMI_I2C_DEV
string "DSI-HDMI I2c Bus"
default "i2c3"
endif
menuconfig MPP_ENABLE_DSI_LCD
bool "Enable LCD Display Driver"
if MPP_ENABLE_DSI_LCD
config MPP_DSI_LCD_RESET_PIN
int "DSI-LCD Reset GPIO"
default 24
config MPP_DSI_LCD_BACKLIGHT_PIN
int "DSI-LCD BackLight GPIO"
default 25
endif
config MPP_DSI_ENABLE_VIRT
bool "Enable VIRT Display Driver "
default y
comment "Display Panle Drivers Configuration"
menuconfig MPP_DSI_ENABLE_HDMI_LT9611
bool "Enable HDMI Display Panel Driver LT9611"
depends on MPP_ENABLE_DSI_HDMI
if MPP_DSI_ENABLE_HDMI_LT9611
config MPP_DSI_LT9611_I2C_SLV_ADDR
hex "LT9611 Slave Address"
default 0x3b
endif
config MPP_DSI_ENABLE_LCD_HX8399
bool "Enable LCD Display Panel Driver HX8399"
default n
config MPP_DSI_ENABLE_LCD_ST7701
bool "Enable LCD Display Panel Driver ST7701"
default n
config MPP_DSI_ENABLE_LCD_ILI9806
bool "Enable LCD Display Panel Driver ili9806"
default n
endmenu
menu "Middleware Configuration"
config MPP_ENABLE_MIDDLEWARE_LIB_FFMPEG
bool "Enable Build Lib ffmpeg"
default n
config MPP_ENABLE_MIDDLEWARE_LIB_X264
bool "Enable Build Lib X264"
default n
select MPP_ENABLE_MIDDLEWARE_LIB_FFMPEG
config MPP_ENABLE_MIDDLEWARE_LIB_RTSP_PUSHER
bool "Enable Build Lib Rtsp Pusher"
default n
select MPP_ENABLE_MIDDLEWARE_LIB_X264
select MPP_ENABLE_MIDDLEWARE_LIB_FFMPEG
endmenu
menu "Enable build MPP samples"
menuconfig MPP_ENABLE_USERAPPS_SAMPLES
bool "Enable userapps samples"
if MPP_ENABLE_USERAPPS_SAMPLES
config MPP_ENABLE_USER_SAMPLES_FASTBOOT_APP
bool "Fast Boot Sample"
default y
config MPP_ENABLE_USER_SAMPLES_OPENCV_CAMERA_TEST
bool "OpenCV Camera Test Sample"
default n
config MPP_ENABLE_USER_SAMPLES_SAMPLE_ADC
bool "ADC Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_AHD_SENSOR
bool "AHD Sensor Sample"
default y
depends on MPP_ENABLE_SENSOR_XS9950
help
AHD Sample, Depends on Sensor XS9950
config MPP_ENABLE_USER_SAMPLES_SAMPLE_AUDIO
bool "Audio Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_AV
bool "AV Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_CANAN_UART_RX
bool "Canaan UART RX Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_CANAN_UART_TX
bool "Canaan UART TX Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_CIPHER
bool "Cipher Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_CSC
bool "CSC Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_DMA
bool "DMA Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_DMA_BIND
bool "DMA Bind Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_DPU
bool "DPU Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_DPU_VICAP
bool "DPU VICAP Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_DPU_VO
bool "DPU VO Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_DW200
bool "DW200 Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_EEPROM
bool "EEPROM Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_FACE_AE
bool "Face AE Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_FACE_DETECT
bool "Face Detection Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_FFT
bool "FFT Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_GPIO
bool "GPIO Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_I2C_SLAVE
bool "I2C Slave Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_LOG
bool "Log Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_MCM
bool "MCM Sample"
default y
depends on MPP_ENABLE_SENSOR_XS9950
config MPP_ENABLE_USER_SAMPLES_SAMPLE_MMZ
bool "MMZ Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_NONAI_2D
bool "Non-AI 2D Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_OTP
bool "OTP Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_PM
bool "Power Management Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_PWM
bool "PWM Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_SENSOR_OTP
bool "Sensor OTP Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_TRIPLE_CAMERA_FACEDETECT
bool "Triple Camera Face Detection Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_TS
bool "TSensor Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VB
bool "VB Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VDD_R
bool "VDD R Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VDEC
bool "VDEC Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VDSS
bool "VDSS Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VDV
bool "VDV Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VENC
bool "VENC Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VICAP
bool "VICAP Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VIRTUAL_VIO
bool "Virtual VIO Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_VO
bool "VO Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_WDT
bool "WDT Sample"
default y
config MPP_ENABLE_USER_SAMPLES_SAMPLE_TIGER
bool "VGLite Sample Tiger"
default y
endif
menuconfig MPP_ENABLE_MIDDLEWARE_SAMPLES
bool "Enable middleware samples"
if MPP_ENABLE_MIDDLEWARE_SAMPLES
config MPP_ENABLE_MIDDLEWARE_SAMPLES_DEMUXER
bool "Demuxer sample"
default y
config MPP_ENABLE_MIDDLEWARE_SAMPLES_MUXER
bool "Muxer sample"
default y
config MPP_ENABLE_MIDDLEWARE_SAMPLES_PLAYER
bool "Player sample"
default y
config MPP_ENABLE_MIDDLEWARE_SAMPLES_RTSP_CLIENT
bool "RTSP Client sample"
default y
config MPP_ENABLE_MIDDLEWARE_SAMPLES_RTSP_SERVER
bool "RTSP Server sample"
default y
config MPP_ENABLE_MIDDLEWARE_SAMPLES_RTSP_PUSHER
bool "RTSP Pusher sample"
default n
select MPP_ENABLE_MIDDLEWARE_LIB_X264
select MPP_ENABLE_MIDDLEWARE_LIB_FFMPEG
select MPP_ENABLE_MIDDLEWARE_LIB_RTSP_PUSHER
endif
endmenu
endmenu