All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [Query] OMAP: DSS2: Margin for downscaling in clock calculations
@ 2011-01-18  5:15 Taneja, Archit
  2011-01-18 14:19 ` Tomi Valkeinen
  0 siblings, 1 reply; 4+ messages in thread
From: Taneja, Archit @ 2011-01-18  5:15 UTC (permalink / raw)
  To: Tomi Valkeinen; +Cc: linux-omap@vger.kernel.org

Hi,

I was going through the DSS2 code which sets up the FCLK
coming from PRCM and the DISPC divivors to get the required pixel
clock. 
 
The function dss_calc_clock_div() does a brute force search across
all possible values of: a) DPLL divisor whose output goes to DSS, b)
DISPC_DIVISOR.LCD, c) DISPC_DIVISOR.pcd

The combination which gives a clock frequency closest to the
required pixel clock is chosen.

Hence, it seems that the resultant DISPC_FCLK clock frequency doesn't
take into account the extra margin needed for downscaling:

Req dispc_fclk >= pck * hscale_ratio * vscale_ration * K

Do you thing putting a further constraint (like DISPC_FCLK needs to be
greater than a given value) should be a part of the calculations to
ensure successful scaling?

Regards,
Archit

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-21 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-18  5:15 [Query] OMAP: DSS2: Margin for downscaling in clock calculations Taneja, Archit
2011-01-18 14:19 ` Tomi Valkeinen
2011-01-18 21:09   ` Taneja, Archit
2011-01-21 11:52     ` Tomi Valkeinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.