Skip to content

Commit afc599c

Browse files
author
Alain Volmat
committed
video: stm32: addition of the STM32 JPEG Codec support
Initial version of the support for the STM32 JPEG codec, currently supporting only NV12 to JPEG without DMA support and using SW based conversion from NV12 to MCU required for the JPEG codec. Signed-off-by: Alain Volmat <[email protected]>
1 parent ae26b10 commit afc599c

File tree

4 files changed

+602
-0
lines changed

4 files changed

+602
-0
lines changed

drivers/video/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_IMX335 imx335.c)
2626
zephyr_library_sources_ifdef(CONFIG_VIDEO_ST_MIPID02 video_st_mipid02.c)
2727
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMIPP video_stm32_dcmipp.c)
2828
zephyr_library_sources_ifdef(CONFIG_VIDEO_RENESAS_RA_CEU video_renesas_ra_ceu.c)
29+
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_JPEG video_stm32_jpeg.c)
2930

3031
zephyr_linker_sources(DATA_SECTIONS video.ld)

drivers/video/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ source "drivers/video/Kconfig.stm32_dcmipp"
9898

9999
source "drivers/video/Kconfig.renesas_ra_ceu"
100100

101+
source "drivers/video/Kconfig.stm32_jpeg"
102+
101103
endif # VIDEO

drivers/video/Kconfig.stm32_jpeg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# STM32 JPEG codec driver configuration options
2+
3+
# Copyright (c) 2025 STMicroelectronics.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config VIDEO_STM32_JPEG
7+
bool "STM32 JPEG codec driver"
8+
default y
9+
depends on DT_HAS_ST_STM32_JPEG_ENABLED
10+
select RESET
11+
select USE_STM32_HAL_JPEG
12+
select USE_STM32_HAL_DMA
13+
select USE_STM32_HAL_DMA_EX
14+
select USE_STM32_HAL_RIF if SOC_SERIES_STM32N6X
15+
help
16+
Enable driver for STM32 JPEG Codec peripheral

0 commit comments

Comments
 (0)