summaryrefslogtreecommitdiff
path: root/drivers/media/platform/qcom/camss-8x16/camss-vfe.h
diff options
context:
space:
mode:
authorTodor Tomov <todor.tomov@linaro.org>2017-08-08 16:30:17 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 22:31:06 +0300
commitbbde31047434678f60820c7187ca7b7ed6e1809f (patch)
tree53cde1e532dcb02c56d90e8bdc4f101779bd28f8 /drivers/media/platform/qcom/camss-8x16/camss-vfe.h
parent474a53d6454fe3bc3dadabf77dca36896608e6a0 (diff)
downloadlinux-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.h2
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;