zephyr/drivers/video/Kconfig
Loic Poulain 420ad255a8 drivers: video: Add dedicated video init priority
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>
2020-04-07 09:44:14 -05:00

42 lines
827 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 pools buffer"
default 64
source "drivers/video/Kconfig.mcux_csi"
source "drivers/video/Kconfig.sw_generator"
source "drivers/video/Kconfig.mt9m114"
endif # VIDEO