[Soekris] Linux access to the 4526's GPIO

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Oct 11 14:24:24 UTC 2005


In message <D679D6ED-583D-4559-A13E-5F63413CCDB1 at kivasystems.com>, Joshua Chait
inPollak writes:
>
>On Oct 11, 2005, at 3:01 AM, Paul Komarek wrote:
>>>>
>>> The NET45xx are not quite that simple to handle from userspace  
>>> because
>>> the GPIO ports are located in a memory segment rather than in I/O  
>>> space.
>>> In FreeBSD we have a device driver which makes it possible to mmap  
>>> that
>>> bit of memory in userland and _then_ it is quite easy.
>>>
>>
>> I don't remember patching my kernel to get gpio support, but it  
>> appears you need to.  This page has 2.6 drivers, and a link to 2.4  
>> drivers:
>>
>> http://www.meduna.org/sw_gpio_en.html
>
>These are drivers for the 4801. That doesn't have the same GPIO as  
>the 4501, does it? The GPIO on the 4501 is built into the Elan chip I  
>thought.

Yes, 48xx and 45xx are different.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the Soekris-tech mailing list