OSDN Git Service

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)
commitc8bfa77b56fecbc2734f67d5265dbd216413501d
treead403f0c594f854c2cf714e8f6424d98b24563e6
parent3846e332a9981b019849566bdbf78ba859856c67
powerpc/86xx: improve calculation of DIU pixel clock on the MPC8610 HPCD

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>
arch/powerpc/platforms/86xx/mpc8610_hpcd.c