mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-24 01:55:21 +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:
parent
a8a0cfa22f
commit
b273f27c07
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user