blob: 33463a0f65cdf6981000f7cd6b1a9718a18c35a1 [file] [log] [blame]
Daniel Lezcano7c15fad2016-02-18 15:57:43 +00001/*
2 * Power debug tool (powerdebug)
Amit Arora39f29542010-09-14 12:03:22 +05303 *
Daniel Lezcano7c15fad2016-02-18 15:57:43 +00004 * Copyright (C) 2016, Linaro Limited.
Amit Arora39f29542010-09-14 12:03:22 +05305 *
Daniel Lezcano7c15fad2016-02-18 15:57:43 +00006 * 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 Arora39f29542010-09-14 12:03:22 +053010 *
Daniel Lezcano7c15fad2016-02-18 15:57:43 +000011 * 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 Arora39f29542010-09-14 12:03:22 +053021
Sanjay Singh Rawat781dc312014-06-19 17:56:55 +053022#define VERSION "0.7.3"
Daniel Lezcano30f01472016-02-18 16:08:10 +000023
24struct powerdebug_options {
25 int flags;
26 unsigned int ticktime;
27 int selectedwindow;
28 char *clkname;
29};
30
31extern int clock_init(void);
32extern int clock_dump(char *clk);
33
34extern int regulator_init(void);
35extern int regulator_dump(void);
36
37extern int gpio_init(void);
38extern int gpio_dump(void);
39
40extern int sensor_dump(void);
41extern int sensor_init(void);