mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
media: rockchip: vicap support mipi csi2 for rv1126b
Change-Id: I6e5a16c450e64c41ade9a6b0ea49915e49038d3c Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
This commit is contained in:
@@ -1100,6 +1100,12 @@ static const struct csi2_match_data rv1103b_csi2_match_data = {
|
||||
.num_hw = 2,
|
||||
};
|
||||
|
||||
static const struct csi2_match_data rv1126b_csi2_match_data = {
|
||||
.chip_id = CHIP_RV1126B_CSI2,
|
||||
.num_pads = CSI2_NUM_PADS_MAX,
|
||||
.num_hw = 4,
|
||||
};
|
||||
|
||||
static const struct of_device_id csi2_dt_ids[] = {
|
||||
#ifdef CONFIG_CPU_RK1808
|
||||
{
|
||||
@@ -1154,6 +1160,12 @@ static const struct of_device_id csi2_dt_ids[] = {
|
||||
.compatible = "rockchip,rv1103b-mipi-csi2",
|
||||
.data = &rv1103b_csi2_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RV1126B
|
||||
{
|
||||
.compatible = "rockchip,rv1126b-mipi-csi2",
|
||||
.data = &rv1126b_csi2_match_data,
|
||||
},
|
||||
#endif
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
@@ -1316,6 +1328,10 @@ static const struct csi2_hw_match_data rv1103b_csi2_hw_match_data = {
|
||||
.chip_id = CHIP_RV1103B_CSI2,
|
||||
};
|
||||
|
||||
static const struct csi2_hw_match_data rv1126b_csi2_hw_match_data = {
|
||||
.chip_id = CHIP_RV1126B_CSI2,
|
||||
};
|
||||
|
||||
static const struct of_device_id csi2_hw_ids[] = {
|
||||
#ifdef CONFIG_CPU_RK1808
|
||||
{
|
||||
@@ -1370,6 +1386,12 @@ static const struct of_device_id csi2_hw_ids[] = {
|
||||
.compatible = "rockchip,rv1103b-mipi-csi2-hw",
|
||||
.data = &rv1103b_csi2_hw_match_data,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RV1126B
|
||||
{
|
||||
.compatible = "rockchip,rv1126b-mipi-csi2-hw",
|
||||
.data = &rv1126b_csi2_hw_match_data,
|
||||
},
|
||||
#endif
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
@@ -96,6 +96,7 @@ enum rkcsi2_chip_id {
|
||||
CHIP_RK3562_CSI2,
|
||||
CHIP_RK3576_CSI2,
|
||||
CHIP_RV1103B_CSI2,
|
||||
CHIP_RV1126B_CSI2,
|
||||
};
|
||||
|
||||
enum csi2_pads {
|
||||
|
||||
Reference in New Issue
Block a user