media: i2c: rk628: set default timing when driver probe

Change-Id: I0f92974fef4a970ae21d24fa685e0f4a94f9e6e4
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
This commit is contained in:
Jianwei Fan
2023-12-12 07:18:12 +00:00
committed by Tao Huang
parent 0c3c6c21e8
commit d88d306316

View File

@@ -2514,6 +2514,8 @@ static int rk628_csi_probe(struct i2c_client *client,
struct rk628 *rk628;
unsigned long irq_flags;
const struct of_device_id *match;
struct v4l2_dv_timings default_timing =
V4L2_DV_BT_CEA_640X480P59_94;
dev_info(dev, "RK628 I2C driver version: %02x.%02x.%02x",
DRIVER_VERSION >> 16,
@@ -2539,6 +2541,7 @@ static int rk628_csi_probe(struct i2c_client *client,
csi->rk628 = rk628;
csi->dsi.rk628 = rk628;
csi->cur_mode = &supported_modes[0];
csi->timings = default_timing;
csi->hdmirx_irq = client->irq;
sd = &csi->sd;
sd->dev = dev;