aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-16version 0.7.2powerdebug-0.7.2Sanjay Singh Rawat
gpio: add function to export gpios to user readme update Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
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>
2014-04-16readme: update prerequisitesSanjay Singh Rawat
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-09-18version 0.7.1powerdebug-0.7.1Shaojie Sun
fixed error shown clock rates. fixed no refresh of regulator and sensor values after "R" key pressed. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
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-21The clock rates that are reported are incorrectShaojie Sun
1. check clock rate is reported by hexadecimal or decimal. 2. clock rate is reported with interger instead of radix point, for example 1.1GHz must be shown in 1100MHz. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-21modify clock rate from int to unsigned int.Shaojie Sun
When clock is large than 2GHz, clock rate will overflow for using int type. So change clock rate type to unsigned int. Then clock rate can reach 4GHz. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-20Pressing "R" to refresh does not update regulator and sensor valuesShaojie Sun
Fix this bug, and read regulator and sensor datas again when "R" key pressed. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-14version 0.7.0powerdebug-0.7.0Shaojie Sun
add gpio modification function. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-08-14Merge branch 'debian'Shaojie Sun
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>
2013-07-22Version 0.6.4Sanjay Singh Rawat
- support for detecting multiple key values which varies for vendors. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-07-22Version 0.6.3Sanjay Singh Rawat
- fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/1014667 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/827828 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-07-22version 0.6.4powerdebug-0.6.4linaro-2013-07-1Sanjay Singh Rawat
support multiple possible values of ENTER key Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-07-22add "case '\n'" for ENTER key input.Shaojie Sun
Because in some keyboard ENTER key value is '\n', so we must add this value for ENTER key triggled. Signed-off-by: Shaojie Sun <shaojie.sun@linaro.com>
2013-04-17version 0.6.3powerdebug-0.6.3Sanjay Singh Rawat
- hande winch signal - report errors with proper message Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-17display proper error messageSanjay Singh Rawat
- bug : https://bugs.launchpad.net/linaro-powerdebug/+bug/1014667 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-17handle winch signalSanjay Singh Rawat
- handle winch to display window properly - bug: https://bugs.launchpad.net/linaro-powerdebug/+bug/827828 Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-02-25Version 0.6.2Sanjay Singh Rawat
- include gpio debug module for android - fix compliation issue and set env variables needed for android Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-18Version 0.6.2Sanjay Singh Rawat
- added support for common clock framework - added regulator related information Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-18documentation: add regulator related informationSanjay Singh Rawat
Add information about the regulator state and status field. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-18clock: support common clock frameworkSanjay Singh Rawat
In common clock framework (merged in 3.8-rc1) the directory and attributes are changed, adapt to the new clock entries in debugfs. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2013-02-15Version 0.6.2Sanjay Singh Rawat
- fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/1068108 to support common clock framework - added regulator related information Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.com>
2011-10-21Fix month release dateDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-10-20Version 0.6.1Daniel Lezcano
- fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/857382 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-10-20Version 0.6.1powerdebug-0.6.1Daniel Lezcano
* Removed sensor unit and display a raw value Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-10-20Remove sensor unitDaniel Lezcano
The value exported could be in Degree or Volt. There is no way to determine the unit used expect to refer the board semantics. Until the kernel exports the unit associated with this value, we can not take a decision from the userspace, the value will be a raw value. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-09-20Version 0.6.0powerdebug-0.6.0Daniel Lezcano
* added gpio support * added android port Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-09-20Version 0.6.0Daniel Lezcano
* added gpio support * added android port Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-09-20Add Android.mk fileNishanth Menon
Add Android.mk file to allow build on Android platform Build steps: clone repository to external/ directory, depending on Android variant being built, edit build/core/main.mk and add: subdirs += \ external/powerdebug \ Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-09-20display.h: show max string lengthNishanth Menon
provide max else build fails Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-09-20clock.c: use standard kernel/debug locationNishanth Menon
getmntent and family is not supported on Bionic. instead use the standard kernel debugfs mount point. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
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-25plug the gpio subsys with the main functionDaniel Lezcano
Let's create the command options parameters and plug the gpio code with the main code. 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>
2011-08-25add GPIO definitionDaniel Lezcano
Add the enum definition we can rely on for the next patches. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-25follow symlinks when browsing the directory treeDaniel Lezcano
Sometime we are interested in following the symlinks, sometime not. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-19change version in the changelogDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-17Version 0.5.2powerdebug-0.5.2Daniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-17Version 0.5.2Daniel Lezcano
- fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/827825 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-07-25Version 0.5.1Daniel Lezcano
- fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/802387 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-07-25Version 0.5.1powerdebug-0.5.1Daniel Lezcano
* Fixed segfault when no clock is available. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-27fix segfault when no clock is availableDaniel Lezcano
When there is no clock available, we even register the display ops. The 'enter' callbakc is set but not data is available int the row private data which leads to a segfaults. This patch fix this problem by not registering the ops if the pm subsystem was not correctly initialized. In the meantime, we have to erase the window when we are switching from one window to another. We can say it is the "default" display callback. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reported-by: Milo (Woogyom) Kim <woogyom.kim@gmail.com>
2011-06-24changed version to conform ↵Daniel Lezcano
https://wiki.linaro.org/WorkingGroups/PowerManagement/PowerMonthlyCycle Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-22Change maintainerDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21 Version 0.5.0Daniel Lezcano
- added tree algorithm - a lot of code cleanup - rewrote the clock code - rewrote the display code - rewrote the regulator code - rewrote the sensor code - rewrote the search code for a clock - added sensor to display - added a mainloop - made the different pm block code consistent to each other - removed most of global variables - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794725 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794726 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794728 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794731 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-06-21Version 0.5.0powerdebug-0.5.0Daniel Lezcano
- added tree algorithm - a lot of code cleanup - rewrote the clock code - rewrote the display code - rewrote the regulator code - rewrote the sensor code - rewrote the search code for a clock - added sensor to display - added a mainloop - made the different pm block code consistent to each other - removed most of global variables - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794725 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794726 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794728 - fixed https://bugs.launchpad.net/linaro-powerdebug/+bug/794731 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>