Daniel Lezcano | 7c15fad | 2016-02-18 15:57:43 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Power debug tool (powerdebug) |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 3 | * |
Daniel Lezcano | 7c15fad | 2016-02-18 15:57:43 +0000 | [diff] [blame] | 4 | * Copyright (C) 2016, Linaro Limited. |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 5 | * |
Daniel Lezcano | 7c15fad | 2016-02-18 15:57:43 +0000 | [diff] [blame] | 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License |
| 8 | * as published by the Free Software Foundation; either version 2 |
| 9 | * of the License, or (at your option) any later version. |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 10 | * |
Daniel Lezcano | 7c15fad | 2016-02-18 15:57:43 +0000 | [diff] [blame] | 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 19 | * |
| 20 | */ |
Amit Arora | 39f2954 | 2010-09-14 12:03:22 +0530 | [diff] [blame] | 21 | |
Sanjay Singh Rawat | 781dc31 | 2014-06-19 17:56:55 +0530 | [diff] [blame] | 22 | #define VERSION "0.7.3" |
Daniel Lezcano | 30f0147 | 2016-02-18 16:08:10 +0000 | [diff] [blame^] | 23 | |
| 24 | struct powerdebug_options { |
| 25 | int flags; |
| 26 | unsigned int ticktime; |
| 27 | int selectedwindow; |
| 28 | char *clkname; |
| 29 | }; |
| 30 | |
| 31 | extern int clock_init(void); |
| 32 | extern int clock_dump(char *clk); |
| 33 | |
| 34 | extern int regulator_init(void); |
| 35 | extern int regulator_dump(void); |
| 36 | |
| 37 | extern int gpio_init(void); |
| 38 | extern int gpio_dump(void); |
| 39 | |
| 40 | extern int sensor_dump(void); |
| 41 | extern int sensor_init(void); |