diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-05-12 23:05:28 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-05-17 11:52:01 -0700 |
commit | 95476fd0eee5030d37fd15b46c9f99b55e9b084b (patch) | |
tree | fe2a56877db38bef39aa182c74125d25fa5946c0 /include | |
parent | 11f6dfc9b24ab41047ea52ca086fa8461067b098 (diff) |
regulator: tps6236x: Adding driver
Adding regulator driver for the device TPS6236x.
bug 821295
Change-Id: Ifed4044db33fa6867248fae000bddf6239cb9685
Reviewed-on: http://git-master/r/31386
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regulator/tps6236x-regulator.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/linux/regulator/tps6236x-regulator.h b/include/linux/regulator/tps6236x-regulator.h new file mode 100644 index 000000000000..d06ace99ce1f --- /dev/null +++ b/include/linux/regulator/tps6236x-regulator.h @@ -0,0 +1,48 @@ +/* + * include/linux/regulator/tps6236x.h + * + * Interface for regulator driver for TI TPS6236x Processor core supply + * + * 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_TPS6236X_H +#define __REGULATOR_TPS6236X_H + +#include <linux/regulator/machine.h> + +/* + * struct tps6236x_regulator_platform_data - tps6236x regulator platform data. + * + * @reg_init_data: The regulator init data. + * @internal_pd_enable: internal pull down enable or not. + * @vsel: Select the voltage id register. + * @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 tps6236x_regulator_platform_data { + struct regulator_init_data reg_init_data; + int internal_pd_enable; + int vsel; + int init_uV; + unsigned init_apply:1; +}; + +#endif /* __REGULATOR_TPS6236X_H */ |