Age | Commit message (Collapse) | Author |
|
Many platforms don't have gpio signals available to userspace
in gpio class. This function adds support to export gpios.
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
|
|
When gpio direction was changed from IN to OUT though sysfs. gpio
value would changed to zero. So after gpio direction changed, we
must read gpio value again.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
|
|
For power consumption test, we can change gpio direction and value
and check that power consumption is falled or not.
use 'D' key to change gpio direction.
And when gpio direction is "out", use 'V' key to change gpio value.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
|
|
In gpio sysfs, direction and egde is shown in string.
dierction value is "in" or "out".
And egde value is "none", "falling", "rising" or "both".
So string must be shown also in powerdebug tool.
Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
|
|
Show in ncurses mode the gpio informations.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Now we dump the output to the stdout.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Now we have the directory structure, we can address the different files
and read their content in order to store them in the tree nodes.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|
|
Read the gpio directory structure where we will read the different
data we are interested in.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
|