From: Knut Petersen Initialization of GEB8 ... GED4 is removed in the graphics engine setup function. GEB8 and GEC8 are set in the drawing functions now, and all other registers never were used. Signed-off-by: Knut Petersen Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/cyblafb.c | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff -puN drivers/video/cyblafb.c~cyblafb-remove-unneeded-code drivers/video/cyblafb.c --- devel/drivers/video/cyblafb.c~cyblafb-remove-unneeded-code 2006-01-03 21:58:14.000000000 -0800 +++ devel-akpm/drivers/video/cyblafb.c 2006-01-03 21:59:23.000000000 -0800 @@ -218,23 +218,12 @@ static void cyblafb_setup_GE(int pitch,i basestride = base; - write3X4(CR36,0x90); // reset GE - write3X4(CR36,0x80); // enable GE - - out32(GE24,1<<7); // reset all GE pointers - out32(GE24,0); - - write3X4(CR2D,0x00); // GE Timinigs, no delays - - out32(GEB8,base); // Destination Stride / Buffer Base 0, p 133 - out32(GEBC,base); // Destination Stride / Buffer Base 1, p 133 - out32(GEC0,base); // Destination Stride / Buffer Base 2, p 133 - out32(GEC4,base); // Destination Stride / Buffer Base 3, p 133 - out32(GEC8,base); // Source Stride / Buffer Base 0, p 133 - out32(GECC,base); // Source Stride / Buffer Base 1, p 133 - out32(GED0,base); // Source Stride / Buffer Base 2, p 133 - out32(GED4,base); // Source Stride / Buffer Base 3, p 133 - out32(GE6C,0); // Pattern and Style, p 129, ok + write3X4(CR36,0x90); // reset GE + write3X4(CR36,0x80); // enable GE + out32(GE24,1<<7); // reset all GE pointers by toggling + out32(GE24,0); // d7 of GE24 + write3X4(CR2D,0x00); // GE Timinigs, no delays + out32(GE6C,0); // Pattern and Style, p 129, ok } //===================================================================== _