Framebuffer driver using SM501 hardware.

Dan Malek dan at embeddededge.com
Wed Aug 17 02:38:50 EST 2005


On Aug 16, 2005, at 9:34 AM, Surendra Yadav wrote:

> I am writing framebuffer driver using SM501. This graphics driver chip 
> can
> drive CRT and TFT panel. I have written two seperate framebuffer 
> driver, one
> for CRT and one for TFT Panel.

I hope you didn't start from scratch.  There is already an SM501
framebuffer driver that works for both CRT and TFT panel.

> But I am not able to test both the devices. Any one of them work at a 
> time.
> I have created two files /dev/fb0 and /dev/fb1.

I don't think you want to do that unless you want two completely 
separate
images on the different outputs.  Normally, both the CRT and TFT display
the same images from the single framebuffer, and you use the capability
of the graphics engine to resize as necessary.

> .... These two can be open
> successfully and mmap is also successful from userspace. If I am 
> trying to
> write on fb0 and  fb1 with different data, they displayed on either 
> CRT or
> TFT panel.

If that's what you really want to do, I suspect you will have to 
register the driver
twice as two separate frame buffers and then manage that within the
single driver.  I would also consider allocating different areas of the 
single
frame buffer and then configure the planes to use the different areas 
within
the single buffer.

Good luck.


	-- Dan




More information about the Linuxppc-dev mailing list