diff options
author | Todor Tomov <todor.tomov@linaro.org> | 2017-08-08 16:30:17 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 22:31:06 +0300 |
commit | bbde31047434678f60820c7187ca7b7ed6e1809f (patch) | |
tree | 53cde1e532dcb02c56d90e8bdc4f101779bd28f8 /drivers/media/platform/qcom/camss-8x16/camss-vfe.h | |
parent | 474a53d6454fe3bc3dadabf77dca36896608e6a0 (diff) | |
download | linux-bbde31047434678f60820c7187ca7b7ed6e1809f.tar.xz |
media: camss: Use optimal clock frequency rates
Use standard V4L2 control to get pixel clock rate from a sensor
linked in the media controller pipeline. Then calculate clock
rates on CSIPHY, CSID and VFE to use the lowest possible.
If the currnet pixel clock rate of the sensor cannot be read then
use the highest possible. This case covers also the CSID test
generator usage.
If VFE is already powered on by another pipeline, check that the
current VFE clock rate is high enough for the new pipeline.
If not return busy error code as VFE clock rate cannot be changed
while VFE is running.
Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/qcom/camss-8x16/camss-vfe.h')
-rw-r--r-- | drivers/media/platform/qcom/camss-8x16/camss-vfe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/camss-8x16/camss-vfe.h b/drivers/media/platform/qcom/camss-8x16/camss-vfe.h index 3651ece53caa..88c29d0dcafa 100644 --- a/drivers/media/platform/qcom/camss-8x16/camss-vfe.h +++ b/drivers/media/platform/qcom/camss-8x16/camss-vfe.h @@ -91,7 +91,7 @@ struct vfe_device { void __iomem *base; u32 irq; char irq_name[30]; - struct clk **clock; + struct camss_clock *clock; int nclocks; struct completion reset_complete; struct completion halt_complete; |