Help about device driver in Linux

2 messages, 2 authors, 1999-12-28 · open the first message on its own page

Help about device driver in Linux

From: Shuangjun Zhu <hidden>
Date: 1999-12-28 02:56:45

Hello, everyone

I want to make two device driver for MPC823,
one is for MPC823 Video, one is for MPC IIC.
Because in the Video driver, it must write configuration
parameters to the video controller through the IIC driver.

Question:
In the fuction cpm_823video_init(), can I call the cpm_823iic_write() ?
Otherwise, how can I do it?

Thanks in advacned!

BRs,
Shuangjun Zhu

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

Re: Help about device driver in Linux

From: Dan Malek <hidden>
Date: 1999-12-28 17:35:39

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-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help