linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* IBM OCP GPIO driver for linux 2.6
@ 2006-08-03 11:15 Jean-Baptiste Maneyrol
  2006-08-03 13:53 ` Dale Farnsworth
  2006-08-03 13:54 ` Arnd Bergmann
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Baptiste Maneyrol @ 2006-08-03 11:15 UTC (permalink / raw)
  To: linuxppc-embedded

Hello everyone, I'm a newbie here!

I'm porting a custom PPC 405GP card based on a Walnut from Montavista
Linux 3.0 (kernel 2.4.18) to linux 2.6, and I was wondering if there is
a port of the IBM OCP GPIO driver (a char driver providing
device /dev/gpio, major 10 minor 185). The driver was written by Armin
Kuster, and it doesn't exist in the stock kernel 2.6.17.7.

Let me known if a port exists, or if there is a new way of accessing the
PPC 405GP GPIO under linux 2.6. Otherwise, I will port this driver using
the IBM IIC driver as an example (for the things about OCP). In this
case, do anybody know where I can have the last version of this driver
(I have v 1.7 (07/25/02)) ? 

Thanks for all!


Jean-Baptiste Maneyrol
Teamlog - France

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: IBM OCP GPIO driver for linux 2.6
@ 2006-08-03 18:25 Milton Miller
  0 siblings, 0 replies; 4+ messages in thread
From: Milton Miller @ 2006-08-03 18:25 UTC (permalink / raw)
  To: dale, jean-baptiste.maneyrol, Linuxppc-embedded

On Thu Aug  3 2006 08:53:00 AM CDT, Dale Farnsworth wrote:
> The recommended way of accessing GPIO registers is to mmap them
> and manipulate them directly in user space.

> 		/* turn media led on */
> 		*reg_addr(p, OUTPUT_REG) &= ~MEDIA_LED_BIT;
> 		sleep(1);
> 		/* turn media led off */
> 		*reg_addr(p, OUTPUT_REG) |= MEDIA_LED_BIT;

Very racy if you need different bits in the same word controlled by different programs.

milton

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

end of thread, other threads:[~2006-08-03 18:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 11:15 IBM OCP GPIO driver for linux 2.6 Jean-Baptiste Maneyrol
2006-08-03 13:53 ` Dale Farnsworth
2006-08-03 13:54 ` Arnd Bergmann
  -- strict thread matches above, loose matches on Subject: below --
2006-08-03 18:25 Milton Miller

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).