Skip to content
Open
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
4 changes: 4 additions & 0 deletions boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -517,3 +517,7 @@ csi_interface: &dcmipp {
csi_ep_in: endpoint {};
};
};

&jpeg {
status = "okay";
};
1 change: 1 addition & 0 deletions drivers/video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_IMX335 imx335.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_ST_MIPID02 video_st_mipid02.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMIPP video_stm32_dcmipp.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_RENESAS_RA_CEU video_renesas_ra_ceu.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_JPEG video_stm32_jpeg.c)

zephyr_linker_sources(DATA_SECTIONS video.ld)
2 changes: 2 additions & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ source "drivers/video/Kconfig.stm32_dcmipp"

source "drivers/video/Kconfig.renesas_ra_ceu"

source "drivers/video/Kconfig.stm32_jpeg"

endif # VIDEO
17 changes: 17 additions & 0 deletions drivers/video/Kconfig.stm32_jpeg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# STM32 JPEG codec driver configuration options

# Copyright (c) 2025 STMicroelectronics.
# SPDX-License-Identifier: Apache-2.0

config VIDEO_STM32_JPEG
bool "STM32 JPEG codec driver"
default y
depends on DT_HAS_ST_STM32_JPEG_ENABLED
depends on VIDEO_ENCODER_JPEG
select RESET
select USE_STM32_HAL_JPEG
select USE_STM32_HAL_DMA
select USE_STM32_HAL_DMA_EX
Comment on lines +13 to +14
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required then, I guess

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it is needed. The JPEG HAL code embeds calls to HAL DMA functions so it is necessary in order to properly build.

select USE_STM32_HAL_RIF if SOC_SERIES_STM32N6X
help
Enable driver for STM32 JPEG Codec peripheral
Loading
Loading