powerpc/86xx: improve calculation of DIU pixel clock on the MPC8610 HPCD
authorTimur Tabi <timur@freescale.com>
Thu, 23 Jun 2011 06:16:48 +0000 (06:16 +0000)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 27 Jun 2011 13:36:17 +0000 (08:36 -0500)
mpc8610hpcd_set_pixel_clock() calculates the correct value of the PXCLK
bits in the CLKDVDR register for a given pixel clock rate.  The code which
performs this calculation is overly complicated and includes an error
estimation routine that doesn't work most of the time anyway.  Replace the
code with the simpler routine that's currently used on the P1022DS.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

No differences found