Merge pull request #2634 from openmv/add_sensor_mipi_bitrate

sensors/pag7936: Set CSI phy bitrate.
This commit is contained in:
Ibrahim Abdelkader 2025-03-28 18:26:06 +02:00 committed by GitHub
commit 27c146bfdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,7 @@ typedef struct _omv_csi {
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.
uint32_t mipi_brate : 12; // CSI-2 interface bitrate.
};
const uint16_t *color_palette; // Color palette used for color lookup.

View File

@ -706,6 +706,7 @@ int pag7936_init(omv_csi_t *csi) {
csi->cfa_format = SUBFORMAT_ID_BGGR;
#if OMV_PAG7936_MIPI_CSI2
csi->mipi_if = 1;
csi->mipi_brate = 1200;
#endif
// Initialize csi ops.