1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 20:33:45 +02:00

ubb-vga.c: DMA was set to transfer twice the amount needed, oops

- ubb-vga.c (line): removed unnecessary DMA channel reset
- ubb-vga.c (line): number of words is pixels/64, not pixels/32
This commit is contained in:
Werner Almesberger 2011-05-01 13:22:08 -03:00
parent a8a0cfa22f
commit b273f27c07

View File

@ -266,11 +266,11 @@ static void line(unsigned long line)
MSC_STRPCL = 1 << 3; /* reset the MSC */
DCS(DMA) = (1 << 31) | (1 << 3) | (1 << 2);
// DCS(DMA) = (1 << 31) | (1 << 3) | (1 << 2);
DCS(DMA) = 1 << 31;
DSA(DMA) = line;
DTA(DMA) = REG_PADDR(MSC_TXFIFO);
DTC(DMA) = mode->xres >> 5;
DTC(DMA) = mode->xres >> 6;
DCM(DMA) =
(1 << 23) | /* source address increment */
(4 << 8); /* transfer size is 32 bytes */