From: gaof f. <sit...@ho...> - 2006-08-02 06:39:22
|
Dear List, I'm with linux-2.6.8 on EDB9307(ep93xx). At the moment, the framebuffer driver(ep93xxfb.c) doesn't support monochrome mode. However, I would like to support the mode. What can I do with ep93xxfb.c or anything else? >In fbdev parlance, monochrome means black and white and the >number of bits per pixel does not matter. > >(It's possible to have 1-bit but the visual is pseudocolor). > >Basically, set fix->visual = FB_VISUAL_MONO01 (or MONO10). > >Then set var->bits_per_pixel and var->{green|red|blue} to the appropriate >numbers. Assuming 1-bit monochrome: > >var->bits_per_pixel = var->green.length = var->red.length = var->blue.length = 1; >var->green.offset = var->red.offset = var->blue.offset = 0; > >Tony Thank you for your reply. I set visual to FB_VISUAL_MONO01, and bits_per_pixel is 4. However, I don't know how to set the PIXELMODE register and the pallette. Any suggestion? _________________________________________________________________ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com |