Create a dedicated config symbol for video device initialization. Generally, video device init is low priority comparing to standard devices. Moreover some video device can rely on other device init, like the csi mcux driver which rely on sensor and i2c init. This fixes a crash in video capture sample, when camera sensor (mt9m114) is not connected. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
42 lines
827 B
Plaintext
42 lines
827 B
Plaintext
# VIDEO driver configuration options
|
||
|
||
# Copyright (c) 2019 Linaro Limited
|
||
# SPDX-License-Identifier: Apache-2.0
|
||
|
||
#
|
||
# VIDEO Drivers
|
||
#
|
||
menuconfig VIDEO
|
||
bool "VIDEO hardware support"
|
||
select LEGACY_TIMEOUT_API
|
||
help
|
||
Enable support for the VIDEO.
|
||
|
||
if VIDEO
|
||
|
||
config VIDEO_INIT_PRIORITY
|
||
int "Video initialization priority"
|
||
default 90
|
||
help
|
||
System initialization priority for video drivers.
|
||
|
||
config VIDEO_BUFFER_POOL_SZ_MAX
|
||
int "Size of the largest buffer in the video pool"
|
||
default 1048576
|
||
|
||
config VIDEO_BUFFER_POOL_NUM_MAX
|
||
int "Number of maximum sized buffer in the video pool"
|
||
default 2
|
||
|
||
config VIDEO_BUFFER_POOL_ALIGN
|
||
int "Alignment of the video pool’s buffer"
|
||
default 64
|
||
|
||
source "drivers/video/Kconfig.mcux_csi"
|
||
|
||
source "drivers/video/Kconfig.sw_generator"
|
||
|
||
source "drivers/video/Kconfig.mt9m114"
|
||
|
||
endif # VIDEO
|