aboutsummaryrefslogtreecommitdiff
path: root/gpio.c
AgeCommit message (Collapse)Author
2014-05-16gpio: add function to export gpiosSanjay Singh Rawat
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>
2013-09-18Read gpio value after gpio direction changed.Shaojie Sun
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>
2013-08-08gpio: add modify gpio function in powerdebug tool.Shaojie Sun
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>
2013-08-08gpio: show gpio direction and egde in string.Shaojie Sun
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>
2011-08-25display the gpio infoDaniel Lezcano
Show in ncurses mode the gpio informations. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-25dump the gpio informationsDaniel Lezcano
Now we dump the output to the stdout. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-25read the content of the filesDaniel Lezcano
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>
2011-08-25read the gpio directory structureDaniel Lezcano
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>