summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dss_features.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-08-29 15:56:04 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 16:16:35 +0300
commit9eaaf2076dac213c034c69051dd7a625cd41f56e (patch)
tree324c8dbe9a8e25c7eb46a986b0b7ac00f4549b59 /drivers/video/omap2/dss/dss_features.h
parentd875f992e9d0b1473ff98845cb3c2a45dcf6aa0f (diff)
downloadop-kernel-dev-9eaaf2076dac213c034c69051dd7a625cd41f56e.zip
op-kernel-dev-9eaaf2076dac213c034c69051dd7a625cd41f56e.tar.gz
OMAP: DSS2: DISPC: Fix minimum PCD value
The current driver had a hardcoded minimum value of 2 for pixel clock divisor (PCD). This doesn't seem to be right. OMAP4 TRM says that PCD can be 1 when not downscaling, and inverted pixel clock (IPC) is off. OMAP3 TRM says the same, but also in the register descriptions that PCD value 1 is invalid. OMAP2 TRM says PCD 2 is the minimum. OMAP2 is still untested, but for both OMAP3 and OMAP4 PCD of 1 seems to work fine. This patch adds a new DSS feature, FEAT_PARAM_DSS_PCD, which is used to find the minimum and maximum PCD. The minimum is set to 2 for OMAP2, and 1 for OMAP3/4. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss_features.h')
-rw-r--r--drivers/video/omap2/dss/dss_features.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h
index c432190..f73585e 100644
--- a/drivers/video/omap2/dss/dss_features.h
+++ b/drivers/video/omap2/dss/dss_features.h
@@ -77,6 +77,7 @@ enum dss_feat_reg_field {
enum dss_range_param {
FEAT_PARAM_DSS_FCK,
+ FEAT_PARAM_DSS_PCD,
FEAT_PARAM_DSIPLL_REGN,
FEAT_PARAM_DSIPLL_REGM,
FEAT_PARAM_DSIPLL_REGM_DISPC,
OpenPOWER on IntegriCloud