Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: video: Move the sensors to their dedicated directory #73013

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions drivers/video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ zephyr_library()

zephyr_library_sources(video_common.c)

add_subdirectory(i2c)

# zephyr-keep-sorted-start
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_MIPI_CSI2RX video_mcux_mipi_csi2rx.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 ov2640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMI video_stm32_dcmi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV5640 ov5640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7670 ov7670.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
# zephyr-keep-sorted-stop
19 changes: 5 additions & 14 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,13 @@ config VIDEO_BUFFER_POOL_ALIGN
int "Alignment of the video pool’s buffer"
default 64

source "drivers/video/Kconfig.mcux_csi"
source "drivers/video/i2c/Kconfig"

# zephyr-keep-sorted-start
source "drivers/video/Kconfig.mcux_csi"
source "drivers/video/Kconfig.mcux_mipi_csi2rx"

source "drivers/video/Kconfig.sw_generator"

source "drivers/video/Kconfig.mt9m114"

source "drivers/video/Kconfig.ov7725"

source "drivers/video/Kconfig.ov2640"

source "drivers/video/Kconfig.stm32_dcmi"

source "drivers/video/Kconfig.ov5640"

source "drivers/video/Kconfig.ov7670"
source "drivers/video/Kconfig.sw_generator"
# zephyr-keep-sorted-stop

endif # VIDEO
11 changes: 11 additions & 0 deletions drivers/video/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

# zephyr-keep-sorted-start
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 video_mt9m114.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 video_ov2640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV5640 video_ov5640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7670 video_ov7670.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 video_ov7725.c)
# zephyr-keep-sorted-stop
13 changes: 13 additions & 0 deletions drivers/video/i2c/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# VIDEO drivers on I2C bus configuration options

# Copyright (c) 2019 Linaro Limited
# Copyright (c) 2024 tinyVision.ai Inc.
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
source "drivers/video/i2c/Kconfig.mt9m114"
source "drivers/video/i2c/Kconfig.ov2640"
source "drivers/video/i2c/Kconfig.ov5640"
source "drivers/video/i2c/Kconfig.ov7670"
source "drivers/video/i2c/Kconfig.ov7725"
# zephyr-keep-sorted-stop
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading