Merge branch 'feat/csi_brg_shared_ctrl' into 'master'

csi: added csi bridge share control code

See merge request espressif/esp-idf!28353
This commit is contained in:
Armando (Dou Yiwen)
2024-01-16 16:30:21 +08:00
9 changed files with 272 additions and 2 deletions

View File

@@ -619,6 +619,10 @@ config SOC_ISP_AF_WINDOW_NUMS
int
default 3
config SOC_ISP_SHARE_CSI_BRG
bool
default y
config SOC_LEDC_SUPPORT_PLL_DIV_CLOCK
bool
default y

View File

@@ -343,7 +343,7 @@ typedef union {
} csi_brg_host_ctrl_reg_t;
typedef struct {
typedef struct csi_brg_dev_t {
volatile csi_brg_clk_en_reg_t clk_en;
volatile csi_brg_csi_en_reg_t csi_en;
volatile csi_brg_dma_req_cfg_reg_t dma_req_cfg;
@@ -361,6 +361,7 @@ typedef struct {
volatile csi_brg_host_ctrl_reg_t host_ctrl;
} csi_brg_dev_t;
extern csi_brg_dev_t MIPI_CSI_BRIDGE;
#ifndef __cplusplus
_Static_assert(sizeof(csi_brg_dev_t) == 0x44, "Invalid size of csi_brg_dev_t structure");

View File

@@ -1815,7 +1815,7 @@ typedef union {
} csi_host_phy_stopstate_reg_t;
typedef struct {
typedef struct csi_host_dev_t {
volatile csi_host_version_reg_t version;
volatile csi_host_n_lanes_reg_t n_lanes;
volatile csi_host_csi2_resetn_reg_t csi2_resetn;
@@ -1872,6 +1872,7 @@ typedef struct {
volatile csi_host_scrambling_seed2_reg_t scrambling_seed2;
} csi_host_dev_t;
extern csi_host_dev_t MIPI_CSI_HOST;
#ifndef __cplusplus
_Static_assert(sizeof(csi_host_dev_t) == 0x30c, "Invalid size of csi_host_dev_t structure");

View File

@@ -275,6 +275,7 @@
#define SOC_ISP_AF_CTLR_NUMS 1U
#define SOC_ISP_AF_ENV_DETECTOR_NUMS 1U
#define SOC_ISP_AF_WINDOW_NUMS 3
#define SOC_ISP_SHARE_CSI_BRG 1
/*-------------------------- LEDC CAPS ---------------------------------------*/
#define SOC_LEDC_SUPPORT_PLL_DIV_CLOCK (1)