Skip to content

Commit 77709eb

Browse files
committed
Revert "media: i2c: imx477: Add selection of (non)continuous clock mode"
This reverts commit 1d6d288.
1 parent aa57e96 commit 77709eb

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

drivers/media/i2c/imx477.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ MODULE_PARM_DESC(trigger_mode, "Set vsync trigger mode: 1=source, 2=sink");
116116
/* Temperature sensor */
117117
#define IMX477_REG_TEMP_SEN_CTL 0x0138
118118

119-
#define IMX477_REG_FRAME_BLANKSTOP_CLK 0xE000
120-
121119
/* Embedded metadata stream structure */
122120
#define IMX477_EMBEDDED_LINE_WIDTH 16384
123121
#define IMX477_NUM_EMBEDDED_LINES 1
@@ -248,6 +246,7 @@ static const struct imx477_reg mode_common_regs[] = {
248246
{0x0136, 0x18},
249247
{0x0137, 0x00},
250248
{0x0138, 0x01},
249+
{0xe000, 0x00},
251250
{0xe07a, 0x01},
252251
{0x0808, 0x02},
253252
{0x4ae9, 0x18},
@@ -1041,11 +1040,6 @@ struct imx477 {
10411040
/* Streaming on/off */
10421041
bool streaming;
10431042

1044-
/* Flags field from parsing the endpoint - used for (non)continuous
1045-
* clock mode
1046-
*/
1047-
unsigned int csi2_flags;
1048-
10491043
/* Rewrite common registers on stream on? */
10501044
bool common_regs_written;
10511045

@@ -1653,12 +1647,6 @@ static int imx477_start_streaming(struct imx477 *imx477)
16531647
__func__);
16541648
return ret;
16551649
}
1656-
1657-
imx477_write_reg(imx477, IMX477_REG_FRAME_BLANKSTOP_CLK,
1658-
IMX477_REG_VALUE_08BIT,
1659-
imx477->csi2_flags & V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK ?
1660-
1 : 0);
1661-
16621650
imx477->common_regs_written = true;
16631651
}
16641652

@@ -2094,8 +2082,6 @@ static int imx477_check_hwcfg(struct device *dev, struct imx477 *imx477)
20942082
goto error_out;
20952083
}
20962084

2097-
imx477->csi2_flags = ep_cfg.bus.mipi_csi2.flags;
2098-
20992085
ret = 0;
21002086

21012087
error_out:

0 commit comments

Comments
 (0)