OMAP4: DSS2: Using dss_features to set independent core clock divider
authorMurthy, Raghuveer <raghuveer.murthy@ti.com>
Thu, 3 Mar 2011 15:28:00 +0000 (09:28 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Mar 2011 13:46:29 +0000 (15:46 +0200)
commit0cf35df353e8c36d4be0da2d7483896de599f397
tree5607e6374e957f7142c23350104652c20f1ed799
parentce7fa5eb1e815e79e4dd5db42d0d1f8c9d96925b
OMAP4: DSS2: Using dss_features to set independent core clock divider

Using dss_features to select independent core clock divider and setting
it. Added the register used, to DISPC context save and restore group

-----------------------------------------------------------------------
In OMAP4, the minimum DISPC_CORE_CLK required can be expressed as:

DISPC_CORE_CLK >= max(PCLK1*HSCALE1, PCLK2*HSCALE2, ...)

Where PCLKi is the pixel clock generated by MANAGERi and HSCALEi is the
maximum horizontal downscaling done through MANAGERi

Based on the usecase, core clk can be increased or decreased at runtime
to save power. Such mechanism are not yet implemented. Hence, we set the
core clock divisor to 1, to support maximum range of resolutions
------------------------------------------------------------------------

Signed-off-by: Raghuveer Murthy <raghuveer.murthy@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c