Venu Byravarasu | 452534e | 2012-03-22 18:34:09 +0530 | [diff] [blame] | 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 */ |