diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/tps65090.h | 28 | ||||
| -rw-r--r-- | include/linux/regulator/tps65090-regulator.h | 50 |
2 files changed, 28 insertions, 50 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h index 6bc31d854626..d06c63335a2a 100644 --- a/include/linux/mfd/tps65090.h +++ b/include/linux/mfd/tps65090.h | |||
| @@ -24,6 +24,23 @@ | |||
| 24 | 24 | ||
| 25 | #include <linux/irq.h> | 25 | #include <linux/irq.h> |
| 26 | 26 | ||
| 27 | /* TPS65090 Regulator ID */ | ||
| 28 | enum { | ||
| 29 | TPS65090_ID_DCDC1, | ||
| 30 | TPS65090_ID_DCDC2, | ||
| 31 | TPS65090_ID_DCDC3, | ||
| 32 | TPS65090_ID_FET1, | ||
| 33 | TPS65090_ID_FET2, | ||
| 34 | TPS65090_ID_FET3, | ||
| 35 | TPS65090_ID_FET4, | ||
| 36 | TPS65090_ID_FET5, | ||
| 37 | TPS65090_ID_FET6, | ||
| 38 | TPS65090_ID_FET7, | ||
| 39 | |||
| 40 | /* Last entry for maximum ID */ | ||
| 41 | TPS65090_ID_MAX, | ||
| 42 | }; | ||
| 43 | |||
| 27 | struct tps65090 { | 44 | struct tps65090 { |
| 28 | struct mutex lock; | 45 | struct mutex lock; |
| 29 | struct device *dev; | 46 | struct device *dev; |
| @@ -41,10 +58,21 @@ struct tps65090_subdev_info { | |||
| 41 | void *platform_data; | 58 | void *platform_data; |
| 42 | }; | 59 | }; |
| 43 | 60 | ||
| 61 | /* | ||
| 62 | * struct tps65090_regulator_plat_data | ||
| 63 | * | ||
| 64 | * @reg_init_data: The regulator init data. | ||
| 65 | */ | ||
| 66 | |||
| 67 | struct tps65090_regulator_plat_data { | ||
| 68 | struct regulator_init_data *reg_init_data; | ||
| 69 | }; | ||
| 70 | |||
| 44 | struct tps65090_platform_data { | 71 | struct tps65090_platform_data { |
| 45 | int irq_base; | 72 | int irq_base; |
| 46 | int num_subdevs; | 73 | int num_subdevs; |
| 47 | struct tps65090_subdev_info *subdevs; | 74 | struct tps65090_subdev_info *subdevs; |
| 75 | struct tps65090_regulator_plat_data *reg_pdata[TPS65090_ID_MAX]; | ||
| 48 | }; | 76 | }; |
| 49 | 77 | ||
| 50 | /* | 78 | /* |
diff --git a/include/linux/regulator/tps65090-regulator.h b/include/linux/regulator/tps65090-regulator.h deleted file mode 100644 index 0fa04b64db3e..000000000000 --- a/include/linux/regulator/tps65090-regulator.h +++ /dev/null | |||
| @@ -1,50 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Regulator driver interface for TI TPS65090 PMIC family | ||
| 3 | * | ||
| 4 | * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. | ||
| 5 | |||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 9 | |||
| 10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | |||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef __REGULATOR_TPS65090_H | ||
| 20 | #define __REGULATOR_TPS65090_H | ||
| 21 | |||
| 22 | #include <linux/regulator/machine.h> | ||
| 23 | |||
| 24 | #define tps65090_rails(_name) "tps65090_"#_name | ||
| 25 | |||
| 26 | enum { | ||
| 27 | TPS65090_ID_DCDC1, | ||
| 28 | TPS65090_ID_DCDC2, | ||
| 29 | TPS65090_ID_DCDC3, | ||
| 30 | TPS65090_ID_FET1, | ||
| 31 | TPS65090_ID_FET2, | ||
| 32 | TPS65090_ID_FET3, | ||
| 33 | TPS65090_ID_FET4, | ||
| 34 | TPS65090_ID_FET5, | ||
| 35 | TPS65090_ID_FET6, | ||
| 36 | TPS65090_ID_FET7, | ||
| 37 | }; | ||
| 38 | |||
| 39 | /* | ||
| 40 | * struct tps65090_regulator_platform_data | ||
| 41 | * | ||
| 42 | * @regulator: The regulator init data. | ||
| 43 | * @slew_rate_uV_per_us: Slew rate microvolt per microsec. | ||
| 44 | */ | ||
| 45 | |||
| 46 | struct tps65090_regulator_platform_data { | ||
| 47 | struct regulator_init_data regulator; | ||
| 48 | }; | ||
| 49 | |||
| 50 | #endif /* __REGULATOR_TPS65090_H */ | ||
