Searched refs:xvclk (Results 1 - 13 of 13) sorted by relevance

/linux-master/drivers/media/i2c/
H A Dov4689.c92 struct clk *xvclk; member in struct:ov4689
522 ret = clk_prepare_enable(ov4689->xvclk);
524 dev_err(dev, "Failed to enable xvclk\n");
548 clk_disable_unprepare(ov4689->xvclk);
559 clk_disable_unprepare(ov4689->xvclk);
887 ov4689->xvclk = devm_clk_get_optional(dev, NULL);
888 if (IS_ERR(ov4689->xvclk))
889 return dev_err_probe(dev, PTR_ERR(ov4689->xvclk),
892 if (!ov4689->xvclk) {
898 ov4689->clock_rate = clk_get_rate(ov4689->xvclk);
[all...]
H A Dov2685.c90 struct clk *xvclk; member in struct:ov2685
109 /* PLL settings bases on 24M xvclk */
457 ret = clk_prepare_enable(ov2685->xvclk);
459 dev_err(dev, "Failed to enable xvclk\n");
473 /* 8192 xvclk cycles prior to the first SCCB transaction */
491 clk_disable_unprepare(ov2685->xvclk);
498 /* 512 xvclk cycles after the last SCCB transaction or MIPI frame end */
502 clk_disable_unprepare(ov2685->xvclk);
786 ov2685->xvclk = devm_clk_get(dev, "xvclk");
[all...]
H A Dov5675.c499 struct clk *xvclk; member in struct:ov5675
975 /* 512 xvclk cycles after the last SCCB transation or MIPI frame end */
982 clk_disable_unprepare(ov5675->xvclk);
996 ret = clk_prepare_enable(ov5675->xvclk);
998 dev_err(dev, "failed to enable xvclk: %d\n", ret);
1006 clk_disable_unprepare(ov5675->xvclk);
1017 /* 8192 xvclk cycles prior to the first SCCB transation */
1188 ov5675->xvclk = devm_clk_get_optional(dev, NULL);
1189 if (IS_ERR(ov5675->xvclk))
1190 return dev_err_probe(dev, PTR_ERR(ov5675->xvclk),
[all...]
H A Dov2680.c156 struct clk *xvclk; member in struct:ov2680_dev
515 clk_disable_unprepare(sensor->xvclk);
544 ret = clk_prepare_enable(sensor->xvclk);
1065 sensor->xvclk = devm_clk_get_optional(dev, "xvclk");
1066 if (IS_ERR(sensor->xvclk)) {
1067 ret = dev_err_probe(dev, PTR_ERR(sensor->xvclk),
1068 "xvclk clock missing or invalid\n");
1083 if (ret && !sensor->xvclk) {
1088 if (!ret && sensor->xvclk) {
[all...]
H A Dov5693.c146 struct clk *xvclk; member in struct:ov5693_device
666 clk_disable_unprepare(ov5693->xvclk);
676 ret = clk_prepare_enable(ov5693->xvclk);
1297 ov5693->xvclk = devm_clk_get_optional(&client->dev, "xvclk");
1298 if (IS_ERR(ov5693->xvclk))
1299 return dev_err_probe(&client->dev, PTR_ERR(ov5693->xvclk),
1300 "failed to get xvclk: %ld\n",
1301 PTR_ERR(ov5693->xvclk));
1303 if (ov5693->xvclk) {
[all...]
H A Dov5695.c97 struct clk *xvclk; member in struct:ov5695
965 ret = clk_prepare_enable(ov5695->xvclk);
967 dev_err(dev, "Failed to enable xvclk\n");
995 clk_disable_unprepare(ov5695->xvclk);
1005 clk_disable_unprepare(ov5695->xvclk);
1267 ov5695->xvclk = devm_clk_get(dev, "xvclk");
1268 if (IS_ERR(ov5695->xvclk)) {
1269 dev_err(dev, "Failed to get xvclk\n");
1272 ret = clk_set_rate(ov5695->xvclk, OV5695_XVCLK_FRE
[all...]
H A Dov7740.c91 struct clk *xvclk; member in struct:ov7740
299 ret = clk_prepare_enable(ov7740->xvclk);
313 clk_disable_unprepare(ov7740->xvclk);
1039 ov7740->xvclk = devm_clk_get(&client->dev, "xvclk");
1040 if (IS_ERR(ov7740->xvclk)) {
1041 ret = PTR_ERR(ov7740->xvclk);
1043 "OV7740: fail to get xvclk: %d\n", ret);
H A Dov8858.c107 struct clk *xvclk; member in struct:ov8858
1627 if (clk_get_rate(ov8858->xvclk) != OV8858_XVCLK_FREQ)
1628 dev_warn(dev, "xvclk mismatched, modes are based on 24MHz\n");
1630 ret = clk_prepare_enable(ov8858->xvclk);
1632 dev_err(dev, "Failed to enable xvclk\n");
1658 clk_disable_unprepare(ov8858->xvclk);
1666 clk_disable_unprepare(ov8858->xvclk);
1887 ov8858->xvclk = devm_clk_get(dev, "xvclk");
1888 if (IS_ERR(ov8858->xvclk))
[all...]
H A Dov8856.c1421 struct clk *xvclk; member in struct:ov8856
2075 ret = clk_prepare_enable(ov8856->xvclk);
2077 dev_err(dev, "failed to enable xvclk\n");
2100 clk_disable_unprepare(ov8856->xvclk);
2116 clk_disable_unprepare(ov8856->xvclk);
2277 ov8856->xvclk = devm_clk_get(dev, "xvclk");
2278 if (IS_ERR(ov8856->xvclk)) {
2279 dev_err(dev, "could not get xvclk clock (%pe)\n",
2280 ov8856->xvclk);
[all...]
H A Dov5670.c1872 /* xvclk input clock */
1873 struct clk *xvclk; member in struct:ov5670
2503 ret = clk_prepare_enable(ov5670->xvclk);
2509 clk_disable_unprepare(ov5670->xvclk);
2533 clk_disable_unprepare(ov5670->xvclk);
2663 ov5670->xvclk = devm_clk_get_optional(&client->dev, NULL);
2664 if (!IS_ERR_OR_NULL(ov5670->xvclk))
2665 input_clk = clk_get_rate(ov5670->xvclk);
2666 else if (!ov5670->xvclk || PTR_ERR(ov5670->xvclk)
[all...]
H A Dov5648.c652 struct clk *xvclk; member in struct:ov5648_sensor
1226 xvclk_rate = clk_get_rate(sensor->xvclk);
1907 ret = clk_prepare_enable(sensor->xvclk);
1922 clk_disable_unprepare(sensor->xvclk);
2524 sensor->xvclk = devm_clk_get(dev, NULL);
2525 if (IS_ERR(sensor->xvclk)) {
2527 ret = PTR_ERR(sensor->xvclk);
2531 rate = clk_get_rate(sensor->xvclk);
H A Dov08d10.c522 struct clk *xvclk; member in struct:ov08d10
H A Dov5640.c1861 u32 xvclk = sensor->xclk_freq / 10000; local
1902 VCO = xvclk * multiplier / prediv;

Completed in 165 milliseconds