diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-02-10 16:14:46 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:51:29 -0700 |
commit | c66d35fa649570b8b10a10777df65117b3dfab6c (patch) | |
tree | ba08a627fea37ecddd4fcf060ef26a772ca85838 /include | |
parent | 9641a85a30cb03c2ded3303301fc080e3363de6b (diff) |
regulator: tps6591x: supporting init state of output through board
Supporting init state of the output power rails from tps6591x through
board files to enable/disable and setting required voltage level.
Original-Change-Id: Ifdf3c4fea889c1fed465db0bdb39df079bf1afa8
Reviewed-on: http://git-master/r/19061
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Change-Id: I198d471ab98aa5bff125b77ccfa99c9104a86426
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regulator/tps6591x-regulator.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/linux/regulator/tps6591x-regulator.h b/include/linux/regulator/tps6591x-regulator.h new file mode 100644 index 000000000000..ade9978b3cb6 --- /dev/null +++ b/include/linux/regulator/tps6591x-regulator.h @@ -0,0 +1,45 @@ +/* + * include/linux/regulator/tps6591x-regulator.h + * + * Interface for regulator driver for TI TPS6591x PMIC family + * + * Copyright (C) 2011 NVIDIA Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef __REGULATOR_TPS6591X_H +#define __REGULATOR_TPS6591X_H + +#include <linux/regulator/machine.h> + +/* + * struct tps6591x_regulator_platform_data - tps6591x regulator platform data. + * + * @regulator: The regulator init data. + * @init_uV: initial micro volts which need to be set. + * @init_enable: Enable or do not enable the rails during initialization. + * @init_apply: Init parameter applied or not. + */ + +struct tps6591x_regulator_platform_data { + struct regulator_init_data regulator; + int init_uV; + unsigned init_enable:1; + unsigned init_apply:1; +}; + +#endif /* __REGULATOR_TPS6591X_H */ |