mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 20:52:22 -04:00
fix DIU for small screens
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>
This commit is contained in:
parent
b60b857387
commit
f889265753
@ -57,7 +57,7 @@ void diu_set_pixel_clock(unsigned int pixclock)
|
|||||||
/* Modify PXCLK in GUTS CLKDVDR */
|
/* Modify PXCLK in GUTS CLKDVDR */
|
||||||
debug("DIU: Current value of CLKDVDR = 0x%08x\n", *clkdvdr);
|
debug("DIU: Current value of CLKDVDR = 0x%08x\n", *clkdvdr);
|
||||||
temp = *clkdvdr & 0xFFFFFF00;
|
temp = *clkdvdr & 0xFFFFFF00;
|
||||||
*clkdvdr = temp | (pixval & 0x1F);
|
*clkdvdr = temp | (pixval & 0xFF);
|
||||||
debug("DIU: Modified value of CLKDVDR = 0x%08x\n", *clkdvdr);
|
debug("DIU: Modified value of CLKDVDR = 0x%08x\n", *clkdvdr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user