fix DIU for small screens
authorKenneth Johansson <kenneth@southpole.se>
Sat, 12 Jul 2008 19:18:34 +0000 (13:18 -0600)
committerJohn Rigby <jrigby@freescale.com>
Sat, 12 Jul 2008 19:34:15 +0000 (13:34 -0600)
The DIU_DIV register is 8 bit not 5 bit. This prevented large DIV values
so it was not possible to set a slow pixel clock and thus prevented
display on small screens.

Signed-off-by: Kenneth Johansson <kenneth@southpole.se>
Acked-by: John Rigby <jrigby@freescale.com>
board/ads5121/ads5121_diu.c

index 87cf0cbbe9115861f4703958bad21b10472fe3f0..26628d3eb54045fec5105e3195ace78f7c05df7d 100644 (file)
@@ -57,7 +57,7 @@ void diu_set_pixel_clock(unsigned int pixclock)
        /* Modify PXCLK in GUTS CLKDVDR */
        debug("DIU: Current value of CLKDVDR = 0x%08x\n", *clkdvdr);
        temp = *clkdvdr & 0xFFFFFF00;
-       *clkdvdr = temp | (pixval & 0x1F);
+       *clkdvdr = temp | (pixval & 0xFF);
        debug("DIU: Modified value of CLKDVDR = 0x%08x\n", *clkdvdr);
 }