Re: monochrome framebuffer driver on EDB9307

Started by Antonino A. Daplas on Aug 2, 2006

open the first message on its own page

Message details and related content
gaof fei wrote:
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?
quoted
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;
quoted
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?
You have to ask someone who has docs for that chipset.

Tony
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help