diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-05-26 13:53:59 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:43:12 -0800 |
commit | e4ad5570cb075826e19fa1ca13251f8d72c4f7a3 (patch) | |
tree | 002c8394baf3dcbd22d5fdd0c36c83b09ca0cb2c /include/linux/regulator | |
parent | 926531b4a4fc2aaa0dfcfb63fb09ad4c0438f83b (diff) |
arm: mfd/regulator: Adding driver for tps80031
Adding core and regulator driver for the TI pmu device tps80031.
Following functionality is added:
- Basic core driver interface to access register.
- Regulator driver.
- gpio driver.
- interrupt support from pmu.
- clock 32 initialization.
bug 830904
bug 829658
Original-Change-Id: I41e732c0b5d0472209798552b5264038e5a97ee4
Reviewed-on: http://git-master/r/33109
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Rebase-Id: R72919d00e28138767da61d673c9e805f74911341
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/tps80031-regulator.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/linux/regulator/tps80031-regulator.h b/include/linux/regulator/tps80031-regulator.h new file mode 100644 index 000000000000..6e030ce01697 --- /dev/null +++ b/include/linux/regulator/tps80031-regulator.h @@ -0,0 +1,45 @@ +/* + * include/linux/regulator/tps80031-regulator.h + * + * Interface for regulator driver for TI TPS80031 + * + * 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_TPS80031_H +#define __REGULATOR_TPS80031_H + +#include <linux/regulator/machine.h> + +/* + * struct tps80031_regulator_platform_data - tps80031 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 tps80031_regulator_platform_data { + struct regulator_init_data regulator; + int init_uV; + unsigned init_enable:1; + unsigned init_apply:1; +}; + +#endif /* __REGULATOR_TPS80031_H */ |