I'd be really surprised if it's possible. I think that those addresses
are beyond the valid physical address range for the mem driver. Even if
it did work I personally wouldn't feel comfortable doing that sort of
thing. You could inadvertently cause a lot of nasty things to happen.
Maybe someone else has a different (better) opinion.
If you do use my driver I uploaded the wrong header file yesterday. I've
now uploaded the correct one.
Gilad Rom wrote:
Thank you for the driver, I'm using it as a reference.
Still, I am trying to acccess the GPIO ports of the Au1500
using /dev/mem, but I keep getting these odd values
(see previous messages to this list)
Do you think it is possible, or should I stick to using the driver?
----- Original Message ----- From: "Pete Popov" <email@example.com>
To: <firstname.lastname@example.org>; "Gilad Rom" <email@example.com>
Sent: Sunday, November 14, 2004 8:45 PM
Subject: Re: GPIO on the Au1500
--- Charles Eidsness <firstname.lastname@example.org>
A little while ago I wrote my own GPIO driver for
the Au1000, mainly as a learning experience. I never bothered to
release it because a driver already exists and I thought it was working.
It was, a long time ago, when it was written for the
Au1000. I had a user app and doc somewhere but can't
find it anymore. The driver didn't support gpio2 and
was, in general, stale. So perhaps your driver will
I'm not sure if it will work on the Au1550, but if you're interested
find the source code here:
Gilad Rom wrote:
> Thanks. Can't I just mmap /dev/mem and use the
> GPIO offset from SYS_BASE?
> > Gilad.
> > ----- Original Message ----- From: "Pete Popov"
> To: "Gilad Rom" <email@example.com>;
> Sent: Friday, November 12, 2004 8:13 PM
> Subject: Re: GPIO on the Au1500
> > >>
>> --- Gilad Rom <firstname.lastname@example.org> wrote:
>>> I am trying to use the au1000_gpio driver, but
>>> little clueless as to how it is meant to be
used. Can I use the GPIO >>> ioctl's from a userland program, or must
a kernel module?
>> I'll see if I can dig up some docs and the
>> userland program this weekend. That driver hasn't
>> tested in a while though.
>>> Thank you,
>>> Gilad Rom
>>> Romat Telecom
> > >