-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
49 lines (27 loc) · 1.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Intel ICH7 gpio module for linux
--------------------------------
This allows access to the GPIO pins on the ICH7
Build Instructions
------------------
from within the source directory, run:
make modules
make modules_install
Usage Instructions
------------------
modprobe ich7_gpio
This creates a file within /proc called ich7_gpio
To see the current state of the gpio registers read this file
You can control the gpio registers by writing to the file:
echo 'cmd args' > /proc/ich7_gpio
Commands
--------
echo 'set reg value' > /proc/ich7_gpio
set the value of the register 'reg' to the value 'value'. See the output of
cat /proc/ich7_gpio to see valid register names. 'value' is a decimal value.
echo 'setbit reg bitno value' > /proc/ich7_gpio
set a particular bit within the register 'reg' to either 1 or 0.
LED commands
------------
The module interfaces with the linux LED interface to allow you to create LEDs
based on the pins. See the scripts directory for examples for this. Currently
examples for the Thecus N5500 and N7700 NASs are provided.