diff -ru a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c
--- a/hw/kdrive/fbdev/fbdev.c	2008-11-03 15:23:53.000000000 +0000
+++ b/hw/kdrive/fbdev/fbdev.c	2008-12-22 11:12:02.000000000 +0000
@@ -628,6 +631,7 @@
 #ifdef TOUCHSCREEN
     KdTsPhyScreen = pScreen->myNum;
 #endif
+    PXA3xxInitVideo(pScreen);
 
     pScreen->CreateColormap = fbdevCreateColormap;
     return TRUE;
@@ -740,6 +744,7 @@
 void
 fbdevScreenFini (KdScreenInfo *screen)
 {
+    PXA3xxFiniVideo(screen->pScreen);
 }
 
 void
diff -ru a/hw/kdrive/fbdev/fbinit.c b/hw/kdrive/fbdev/fbinit.c
--- a/hw/kdrive/fbdev/fbinit.c	2008-11-03 15:23:56.000000000 +0000
+++ b/hw/kdrive/fbdev/fbinit.c	2008-12-22 11:12:02.000000000 +0000
@@ -25,6 +25,9 @@
 #endif
 #include <fbdev.h>
 
+#include "pxa3xx-accel.h"
+//include "pxa3xx-accel.c"
+
 void
 InitCard (char *name)
 {
@@ -105,10 +108,16 @@
     0,			    /* finiCursor */
     0,			    /* recolorCursor */
     
-    0,			    /* initAccel */
-    0,			    /* enableAccel */
-    0,			    /* disableAccel */
-    0,			    /* finiAccel */
+//    0,			    /* initAccel */
+//    0,			    /* enableAccel */
+//    0,			    /* disableAccel */
+//    0,			    /* finiAccel */
+    pxa3xxGFXInit,          /* initAccel */
+    pxa3xxGFXEnable,        /* enableAccel */
+    pxa3xxGFXDisable,       /* disableAccel */
+    pxa3xxGFXFini,          /* finiAccel */
+  
+
     
     fbdevGetColors,    	    /* getColors */
     fbdevPutColors,	    /* putColors */
diff -ru a/hw/kdrive/src/koffscreen.c b/hw/kdrive/src/koffscreen.c
--- a/hw/kdrive/src/koffscreen.c	2007-11-06 14:37:25.000000000 +0000
+++ b/hw/kdrive/src/koffscreen.c	2008-12-22 11:12:00.000000000 +0000
@@ -166,7 +166,7 @@
 
 	/* adjust size to match alignment requirement */
 	real_size = size;
-	tmp = begin->offset % align;
+	tmp = best->offset % align;
 	if (tmp)
 	    real_size += (align - tmp);
 

--- a/hw/kdrive/fbdev/Makefile.am	2009-01-10 12:04:35.000000000 +0000
+++ b/hw/kdrive/fbdev/Makefile.am	2009-01-10 12:04:47.000000000 +0000
@@ -5,6 +5,8 @@
 noinst_LIBRARIES = libfbdev.a
 
 libfbdev_a_SOURCES =	\
+	pxa3xx-accel.c	\
+	pxa3xx-video.c	\
 	fbdev.c		\
 	fbdev.h
 
