aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator/tps65090-regulator.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/regulator/tps65090-regulator.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'include/linux/regulator/tps65090-regulator.h')
-rw-r--r--include/linux/regulator/tps65090-regulator.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/include/linux/regulator/tps65090-regulator.h b/include/linux/regulator/tps65090-regulator.h
new file mode 100644
index 00000000000..341d53ec994
--- /dev/null
+++ b/include/linux/regulator/tps65090-regulator.h
@@ -0,0 +1,60 @@
1/*
2 * include/linux/regulator/tps65090-regulator.h
3 *
4 * Interface for regulator driver for TI TPS65090 PMIC family
5 *
6 * Copyright (C) 2012 NVIDIA Corporation
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 *
22 */
23
24#ifndef __REGULATOR_TPS65090_H
25#define __REGULATOR_TPS65090_H
26
27#include <linux/regulator/machine.h>
28
29#define tps65090_rails(_name) "tps65090_"#_name
30
31enum {
32 TPS65090_ID_DCDC1,
33 TPS65090_ID_DCDC2,
34 TPS65090_ID_DCDC3,
35 TPS65090_ID_FET1,
36 TPS65090_ID_FET2,
37 TPS65090_ID_FET3,
38 TPS65090_ID_FET4,
39 TPS65090_ID_FET5,
40 TPS65090_ID_FET6,
41 TPS65090_ID_FET7,
42};
43
44/*
45 * struct tps65090_regulator_platform_data
46 *
47 * @regulator: The regulator init data.
48 * @init_uV: initial micro volts which need to be set.
49 * @init_enable: Enable or do not enable the rails during initialization.
50 * @init_apply: Init parameter applied or not.
51 * @slew_rate_uV_per_us: Slew rate microvolt per microsec.
52 */
53
54struct tps65090_regulator_platform_data {
55 struct regulator_init_data regulator;
56 int slew_rate_uV_per_us;
57 unsigned int flags;
58};
59
60#endif /* __REGULATOR_TPS65090_H */