[Soekris] 4801 GPIO

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jan 17 12:42:11 UTC 2007


In message <FA89AD7D-E1A5-4507-9A3D-2EADA9650423 at ctrlsft.com>, Steven Finnegan 
writes:
>For the last two days, I have been searching for information  
>regarding accessing the GPIO pins from within FreeBSD (for the  
>purpose of driving LEDs). I found an old message from Poul-Henning  
>Kamp that talked about support for the "error" LED -- that also  
>stated that creating additional LEDs was fairly straight-forward, but  
>it did not describe the process.
>
>This is to request any information regarding this subject. Poul, if  
>you're still offereing this info by email (???), I would appreciate  
>your response.

Sorry, I'm a bit snowed under right now.

The code you are looking for is in sys/i386/i386/geode.c around line 185

You basically need configure the GPIO pins you want and add more 
led_create() calls.

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