Skip to content

Commit

Permalink
fbdev/amifb: Enable Copper DMA after setting up the Copper
Browse files Browse the repository at this point in the history
Else the Copper may start executing random instructions

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Geert Uytterhoeven authored and Florian Tobias Schandinat committed Dec 3, 2011
1 parent 03c740a commit af5761d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions drivers/video/amifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3733,17 +3733,15 @@ static int __init amifb_probe(struct platform_device *pdev)
memset(dummysprite, 0, DUMMYSPRITEMEMSIZE);

/*
* Enable Display DMA
* Make sure the Copper has something to do
*/

custom.dmacon = DMAF_SETCLR | DMAF_MASTER | DMAF_RASTER | DMAF_COPPER |
DMAF_BLITTER | DMAF_SPRITE;
ami_init_copper();

/*
* Make sure the Copper has something to do
* Enable Display DMA
*/

ami_init_copper();
custom.dmacon = DMAF_SETCLR | DMAF_MASTER | DMAF_RASTER | DMAF_COPPER |
DMAF_BLITTER | DMAF_SPRITE;

if (request_irq(IRQ_AMIGA_COPPER, amifb_interrupt, 0,
"fb vertb handler", &currentpar)) {
Expand Down

0 comments on commit af5761d

Please sign in to comment.