1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-23 23:20:38 +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 */ 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; DCS(DMA) = 1 << 31;
DSA(DMA) = line; DSA(DMA) = line;
DTA(DMA) = REG_PADDR(MSC_TXFIFO); DTA(DMA) = REG_PADDR(MSC_TXFIFO);
DTC(DMA) = mode->xres >> 5; DTC(DMA) = mode->xres >> 6;
DCM(DMA) = DCM(DMA) =
(1 << 23) | /* source address increment */ (1 << 23) | /* source address increment */
(4 << 8); /* transfer size is 32 bytes */ (4 << 8); /* transfer size is 32 bytes */