media: i2c: ov5645: Remove software reset entry from ov5645_global_init_setting
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 15 Feb 2024 14:43:33 +0000 (14:43 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 23 Feb 2024 13:33:32 +0000 (14:33 +0100)
commit25a3c0c7d0221465da5d89f9b6551a26ac12f9fd
treef0707080402fbdb49551545cab28049ecf75422c
parent188d2ff3342bdeea471d0d2f5599ef0fea7de5e2
media: i2c: ov5645: Remove software reset entry from ov5645_global_init_setting

The SYSTEM_CTRL0 register in ov5645 is almost similar to ov5640. But the
hard reset control is mandatory for the ov5645 device, so there is no
need for soft reset in the driver.

Add a 1msec delay for the software power up (OV5645_SYSTEM_CTRL0_START)
register in ov5645_global_init_setting. Without this delay sometimes the
image is not captured at all when the i2c frequency is 400kHz.

The changes are fixing both the greenish issue and image capture at 400kHz
i2c frequency on Renesas RZ/G2L SMARC EVK platforms.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov5645.c