]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
OMAPDSS:HDMI: Change PLL calculations
authorAndy Gross <andy.gross@ti.com>
Wed, 29 May 2013 07:38:06 +0000 (13:08 +0530)
committerArchit Taneja <archit@ti.com>
Thu, 30 May 2013 23:03:38 +0000 (04:33 +0530)
commit4ebcade90a3cd164de43cb96cda1fe6f319c58bc
treec6cbf0c7cdcf6993ed6e172aa1ad955055a98a21
parent508669f4b58e719659cf7b3ebe48e7ae1a0ea3ca
OMAPDSS:HDMI: Change PLL calculations

This patch modifies the algorithms used to determine the correct PLL
settings for the HDMI TMDS output.  Instead of using fixed REGM2 values
we search for a valid combination of REGN, REGM, REGM2 that satisfy the
constraints for the requested frequency.

The computation involves looping through the values of REGN and trying to
find an adequate REGM and REGM2 (if applicable).  This results in the lowest
value for REGN that will satisfy the frequency request.

This patch also modifies the API used for the hdmi_compute_pll function.
If a valid PLL combination cannot be found, we return an error back to the
caller.

Signed-off-by: Andy Gross <andy.gross@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/dss_features.c
drivers/video/omap2/dss/dss_features.h
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/ti_hdmi.h
drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c