Skip to content

Commit

Permalink
samples: video: capture: rt10xx: Add work-around for init priority issue
Browse files Browse the repository at this point in the history
Similar to the mcxn947 (ov7670/smartDMA) issue, the CSI needs to be
initialized BEFORE the camera sensor to provide clock to the camera
sensor. However, the CSI node refers to the camera sensor node in the DT
so it has to be initialized AFTER the sensor to be able to compiled.

This is a deadlock issue as Zephyr currently does not allow circular
dependency. Disable the init priority check as a work-around for this.

Signed-off-by: Phi Bang Nguyen <[email protected]>
  • Loading branch information
ngphibang committed Oct 18, 2024
1 parent a2ac676 commit d1c1d92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/drivers/video/capture/boards/mimxrt1060_evkb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
CONFIG_DMA=y
CONFIG_MCUX_ELCDIF_PXP=y
CONFIG_MCUX_ELCDIF_PXP_FLIP_HORIZONTAL=y

# Workaround for issue where the CSI driver needs to initialize before
# the camera sensor, so that it can provide clock for the camera device
CONFIG_CHECK_INIT_PRIORITIES=n
4 changes: 4 additions & 0 deletions samples/drivers/video/capture/boards/mimxrt1064_evk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
CONFIG_DMA=y
CONFIG_MCUX_ELCDIF_PXP=y
CONFIG_MCUX_ELCDIF_PXP_FLIP_HORIZONTAL=y

# Workaround for issue where the CSI driver needs to initialize before
# the camera sensor, so that it can provide clock for the camera device
CONFIG_CHECK_INIT_PRIORITIES=n

0 comments on commit d1c1d92

Please sign in to comment.