|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Karl-Heinz Wild (kh.wild
wicom.li)
Date: Tue Dec 04 2007 - 09:20:15 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi.
Marc Balmer gave me info about adding gpio support
for the new alix boards produced by pcengines.
I hope someone is interested in ... I'll sum it up ...
1. add to GENERIC config
>>> gpio* at gscpcib?
>>> glxpcib* at pci? # AMD CS5536 PCI-ISA bridge
>>> gpio* at glxpcib?
2. booting the new kernel dmesg shows then
>>> gpio0 at glxpcib0: 32 pins
>>> pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
>>> channel 0 wired to compatibility, channel 1 wired to compatibility
3. after making the device with MAKEDEV gpio0
4. initializing the gpio for
led 1 = 6; led 2 = 25 and led 3 = 27
with gpioctl -c [led] out iout
5. then - to set or reset the leds use
gpioctl [led] 1 || 0 || 2
for the rest rtfm - gpioctl.
This configuration works for me. Please correct me if something
is wrong or could be done better.
-
Karl-Heinz
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]