Repository navigation
Commit 24786cc
media: i2c: ov2659: Use clk_{prepare_enable,disable_unprepare}() to set xvclk on/off
On some platform(imx6q), xvclk might not switch on in advance,
also for power save purpose, xvclk should not be always on.
so, add clk_prepare_enable(), clk_disable_unprepare() in driver
side to set xvclk on/off at proper stage.
Add following changes:
- add 'struct clk *clk;' in 'struct ov2659 {}'
- enable xvclk in ov2659_power_on()
- disable xvclk in ov2659_power_off()
Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
Acked-by: Lad Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>1 parent 2cb2705 commit 24786cc
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
1268 | 1269 | | |
1269 | 1270 | | |
1270 | 1271 | | |
| 1272 | + | |
| 1273 | + | |
1271 | 1274 | | |
1272 | 1275 | | |
1273 | 1276 | | |
| |||
1276 | 1279 | | |
1277 | 1280 | | |
1278 | 1281 | | |
| 1282 | + | |
1279 | 1283 | | |
1280 | 1284 | | |
1281 | 1285 | | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1282 | 1293 | | |
1283 | 1294 | | |
1284 | 1295 | | |
| |||
1423 | 1434 | | |
1424 | 1435 | | |
1425 | 1436 | | |
1426 | | - | |
1427 | 1437 | | |
1428 | 1438 | | |
1429 | 1439 | | |
| |||
1438 | 1448 | | |
1439 | 1449 | | |
1440 | 1450 | | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1444 | 1454 | | |
1445 | | - | |
| 1455 | + | |
1446 | 1456 | | |
1447 | 1457 | | |
1448 | 1458 | | |
| |||
1504 | 1514 | | |
1505 | 1515 | | |
1506 | 1516 | | |
1507 | | - | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1508 | 1520 | | |
1509 | 1521 | | |
1510 | 1522 | | |
| |||
0 commit comments