misc: Add CSI2 hardware flag.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2024-11-26 15:33:58 +01:00
parent ce8aee77c6
commit c0b36aa86b
2 changed files with 5 additions and 1 deletions

View File

@ -265,6 +265,7 @@ typedef struct _omv_csi {
uint32_t yuv_format : 1; // YUV/YVU output format.
uint32_t jpg_format : 3; // JPEG output format/mode.
uint32_t cfa_format : 3; // CFA format/pattern.
uint32_t mipi_if : 1; // CSI-2 interface.
};
const uint16_t *color_palette; // Color palette used for color lookup.

View File

@ -106,7 +106,7 @@
#define PAG7936_MIN_AGAIN (1472) // AGain min value, unit is 1/1024x
#define PAG7936_MAX_AGAIN (16384) // AGain max value, unit is 1/1024x
#if OMV_PAG7936_MIPI
#if OMV_PAG7936_MIPI_CSI2
#define PAG7936_WIDTH_ALIGN (8)
#else
#define PAG7936_WIDTH_ALIGN (4)
@ -409,6 +409,9 @@ int pag7936_init(omv_csi_t *csi) {
csi->mono_bpp = 1;
csi->raw_output = 1;
csi->cfa_format = SUBFORMAT_ID_BGGR;
#if OMV_PAG7936_MIPI_CSI2
csi->mipi_if = 1;
#endif
// Initialize csi ops.
csi->reset = reset;