Help about device driver in Linux

Dan Malek dan at netx4.com
Wed Dec 29 04:35:39 EST 1999


Shuangjun Zhu wrote:

> I want to make two device driver for MPC823,
> one is for MPC823 Video, one is for MPC IIC.


Both of these exist in the 2.2.13 kernel on ppc.kernel.org.
I regularly use the video driver for LCDs.  It is pretty trivial,
just initializes the 823 and you can mmap() the frame buffer.
There is an ioctl() to set the color map.  I don't know what
to do with it from here, it works well enough for demos and
some custom software I have written.

There are some (relatively) undocumented features to set
aggressive mode display updates, don't mess this up or the
PPC core won't make any progress.  This code works equally
well on the 823 and 823e.  It will not work on the 821.


> Because in the Video driver, it must write configuration
> parameters to the video controller through the IIC driver.

I normally let the application program do this.  We can argue all
day about whether the video driver should have this knowledge, but
it is clearly easier if the application does it.



	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list