diff options
author | Venu Byravarasu <vbyravarasu@nvidia.com> | 2012-03-16 01:40:19 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-03-20 11:56:33 -0400 |
commit | 3c33be06f9aa0949ad24e67dfcae1f2a3006f4e1 (patch) | |
tree | b53b2e2c0257e2fac0a971fb94f334857da924bd /include/linux/mfd | |
parent | bcc2d6d6fcbee3c07515837b522f6c242f3f99e4 (diff) |
mfd: Add support for TPS65090
TPS65090 is a Texas Instrument PMIC. It contains 3 Step-Down converters, 2
always on LDO's and 7 current limited load switches.
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/tps65090.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h new file mode 100644 index 000000000000..38e31c55adbb --- /dev/null +++ b/include/linux/mfd/tps65090.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * Core driver interface for TI TPS65090 PMIC family | ||
3 | * | ||
4 | * Copyright (C) 2012 NVIDIA Corporation | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
14 | * more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
19 | * | ||
20 | */ | ||
21 | |||
22 | #ifndef __LINUX_MFD_TPS65090_H | ||
23 | #define __LINUX_MFD_TPS65090_H | ||
24 | |||
25 | struct tps65090_subdev_info { | ||
26 | int id; | ||
27 | const char *name; | ||
28 | void *platform_data; | ||
29 | }; | ||
30 | |||
31 | struct tps65090_platform_data { | ||
32 | int irq_base; | ||
33 | int num_subdevs; | ||
34 | struct tps65090_subdev_info *subdevs; | ||
35 | }; | ||
36 | |||
37 | /* | ||
38 | * NOTE: the functions below are not intended for use outside | ||
39 | * of the TPS65090 sub-device drivers | ||
40 | */ | ||
41 | extern int tps65090_write(struct device *dev, int reg, uint8_t val); | ||
42 | extern int tps65090_read(struct device *dev, int reg, uint8_t *val); | ||
43 | extern int tps65090_set_bits(struct device *dev, int reg, uint8_t bit_num); | ||
44 | extern int tps65090_clr_bits(struct device *dev, int reg, uint8_t bit_num); | ||
45 | |||
46 | #endif /*__LINUX_MFD_TPS65090_H */ | ||