author | Andy Gross <andy.gross@ti.com> | |
Wed, 29 May 2013 07:38:06 +0000 (13:08 +0530) | ||
committer | Archit Taneja <archit@ti.com> | |
Thu, 30 May 2013 23:03:38 +0000 (04:33 +0530) | ||
commit | 4ebcade90a3cd164de43cb96cda1fe6f319c58bc | |
tree | c6cbf0c7cdcf6993ed6e172aa1ad955055a98a21 | tree | snapshot (tar.xz tar.gz zip) |
parent | 508669f4b58e719659cf7b3ebe48e7ae1a0ea3ca | commit | diff |
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>
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>