linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* The GPIO problem on MPC8323?
@ 2010-03-23  7:07 liu.yaojin
  2010-03-23 17:13 ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: liu.yaojin @ 2010-03-23  7:07 UTC (permalink / raw)
  To: linuxppc-dev

hi,all:

i saw peter's mpc8xxx_gpio.c in kernel 2.6.31. it seems that file can only 
be used on 831x and others, but not mpc8323. my platform is mpc8323, how 
can i use the GPIO?
i also found "QE GPIO Support" and "Support for simple, memory-mapped GPIO 
controllers" selection,  how can i use it and test in user space?

thanks, best regards.

evan.


--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The GPIO problem on MPC8323?
  2010-03-23  7:07 The GPIO problem on MPC8323? liu.yaojin
@ 2010-03-23 17:13 ` Scott Wood
  2010-03-24  2:11   ` liu.yaojin
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2010-03-23 17:13 UTC (permalink / raw)
  To: liu.yaojin; +Cc: linuxppc-dev

On Tue, Mar 23, 2010 at 03:07:49PM +0800, liu.yaojin@zte.com.cn wrote:
> hi,all:
> 
> i saw peter's mpc8xxx_gpio.c in kernel 2.6.31. it seems that file can only 
> be used on 831x and others, but not mpc8323. my platform is mpc8323, how 
> can i use the GPIO?
> i also found "QE GPIO Support" and "Support for simple, memory-mapped GPIO 
> controllers" selection,  how can i use it and test in user space?
> 
> thanks, best regards.

This is the same e-mail that you sent yesterday...  Yes, you want the QE
GPIO driver for QE chips.  It should work the same as other GPIO drivers. 
Check the documentation or the code for how to use the interface.

-Scott

^ permalink raw reply	[flat|nested] 3+ messages in thread

* re: Re: The GPIO problem on MPC8323?
  2010-03-23 17:13 ` Scott Wood
@ 2010-03-24  2:11   ` liu.yaojin
  0 siblings, 0 replies; 3+ messages in thread
From: liu.yaojin @ 2010-03-24  2:11 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev-bounces+liu.yaojin=zte.com.cn, linuxppc-dev

thanks for replying.
it's my first time to use POWERPC,and i found it very different from ARM.
after i select "QE GPIO Suppor" in KConfig, i don't know how to use in 
next step.
Because no device node was found in /dev, and the format of dts is strange 
for me.
could you show me a little example?




On Tue, Mar 23, 2010 at 03:07:49PM +0800, liu.yaojin@zte.com.cn wrote:
> hi,all:
> 
> i saw peter's mpc8xxx_gpio.c in kernel 2.6.31. it seems that file can 
only 
> be used on 831x and others, but not mpc8323. my platform is mpc8323, how 

> can i use the GPIO?
> i also found "QE GPIO Support" and "Support for simple, memory-mapped 
GPIO 
> controllers" selection,  how can i use it and test in user space?
> 
> thanks, best regards.

This is the same e-mail that you sent yesterday...  Yes, you want the QE
GPIO driver for QE chips.  It should work the same as other GPIO drivers. 
Check the documentation or the code for how to use the interface.

-Scott


--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-24  2:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23  7:07 The GPIO problem on MPC8323? liu.yaojin
2010-03-23 17:13 ` Scott Wood
2010-03-24  2:11   ` liu.yaojin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).