From d04c36b43bb1d4535b947b707f81451865f77e0c Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 14 May 2004 20:17:12 -0700 Subject: [PATCH] [PATCH] fbdev: set a default access_align value From: James Simmons Set the default access_align variable. This variable tells us how much data the hardware can handle in a single read/write cycle. For example the epson chipset can handle only 16 bit reads and writes to the framebuffer. --- drivers/video/fbmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 963b2df73bc25..1f4968c3a402f 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -1290,6 +1290,7 @@ register_framebuffer(struct fb_info *fb_info) fb_info->pixmap.size = FBPIXMAPSIZE; fb_info->pixmap.buf_align = 1; fb_info->pixmap.scan_align = 1; + fb_info->pixmap.access_align = 4; fb_info->pixmap.flags = FB_PIXMAP_DEFAULT; } } @@ -1305,6 +1306,7 @@ register_framebuffer(struct fb_info *fb_info) fb_info->sprite.size = FBPIXMAPSIZE; fb_info->sprite.buf_align = 1; fb_info->sprite.scan_align = 1; + fb_info->sprite.access_align = 4; fb_info->sprite.flags = FB_PIXMAP_DEFAULT; } } -- 2.53.0