OSDN Git Service

media: ov7670: control clock along with power
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 15 Jan 2019 08:54:46 +0000 (06:54 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 Jan 2019 12:45:23 +0000 (10:45 -0200)
commit030f9f682e66ea3be214f673ca8ba53294eeecd2
treeebbfb1dbe229fbc4b5cc19356f45b42df855984e
parent3d6a8fe256059034ddd592f1e169da5ff9d28d7e
media: ov7670: control clock along with power

This provides more power saving when the sensor is off.

While at that, do the delay on power/clock enable even if the sensor driver
itself doesn't control the GPIOs. This is required for the OLPC XO-1
platform, that lacks the proper power/reset properties in its DT, but
needs the delay after the sensor is clocked up.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov7670.c