diff options
| author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-01-09 09:57:41 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 07:01:23 -0500 |
| commit | 6219929f5f82708309b3054ec7db6cb6e3ee47d5 (patch) | |
| tree | 7c2f518ac97b57f7b373987032578e69b25dadcd /include/linux/regulator | |
| parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) | |
regulator: TPS62360: Add tps62360 regulator driver
The regulator module consists of 1 DCDC. The output voltage
is configurable and is meant for supply power to the core
voltage of Soc.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/tps62360.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/include/linux/regulator/tps62360.h b/include/linux/regulator/tps62360.h new file mode 100644 index 00000000000..6a5c1b2c751 --- /dev/null +++ b/include/linux/regulator/tps62360.h | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* | ||
| 2 | * tps62360.h -- TI tps62360 | ||
| 3 | * | ||
| 4 | * Interface for regulator driver for TI TPS62360 Processor core supply | ||
| 5 | * | ||
| 6 | * Copyright (C) 2012 NVIDIA Corporation | ||
| 7 | |||
| 8 | * Author: Laxman Dewangan <ldewangan@nvidia.com> | ||
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License as published by | ||
| 12 | * the Free Software Foundation; either version 2 of the License, or | ||
| 13 | * (at your option) any later version. | ||
| 14 | * | ||
| 15 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 16 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 17 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 18 | * more details. | ||
| 19 | * | ||
| 20 | * You should have received a copy of the GNU General Public License along | ||
| 21 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 22 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 23 | * | ||
| 24 | */ | ||
| 25 | |||
| 26 | #ifndef __LINUX_REGULATOR_TPS62360_H | ||
| 27 | #define __LINUX_REGULATOR_TPS62360_H | ||
| 28 | |||
| 29 | #include <linux/regulator/machine.h> | ||
| 30 | |||
| 31 | /* | ||
| 32 | * struct tps62360_regulator_platform_data - tps62360 regulator platform data. | ||
| 33 | * | ||
| 34 | * @reg_init_data: The regulator init data. | ||
| 35 | * @en_force_pwm: Enable force pwm or not. | ||
| 36 | * @en_discharge: Enable discharge the output capacitor via internal | ||
| 37 | * register. | ||
| 38 | * @en_internal_pulldn: internal pull down enable or not. | ||
| 39 | * @vsel0_gpio: Gpio number for vsel0. It should be -1 if this is tied with | ||
| 40 | * fixed logic. | ||
| 41 | * @vsel1_gpio: Gpio number for vsel1. It should be -1 if this is tied with | ||
| 42 | * fixed logic. | ||
| 43 | * @vsel0_def_state: Default state of vsel0. 1 if it is high else 0. | ||
| 44 | * @vsel1_def_state: Default state of vsel1. 1 if it is high else 0. | ||
| 45 | */ | ||
| 46 | struct tps62360_regulator_platform_data { | ||
| 47 | struct regulator_init_data reg_init_data; | ||
| 48 | bool en_force_pwm; | ||
| 49 | bool en_discharge; | ||
| 50 | bool en_internal_pulldn; | ||
| 51 | int vsel0_gpio; | ||
| 52 | int vsel1_gpio; | ||
| 53 | int vsel0_def_state; | ||
| 54 | int vsel1_def_state; | ||
| 55 | }; | ||
| 56 | |||
| 57 | #endif /* __LINUX_REGULATOR_TPS62360_H */ | ||
