From e4ad5570cb075826e19fa1ca13251f8d72c4f7a3 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Thu, 26 May 2011 13:53:59 +0530 Subject: 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 Reviewed-by: Thomas Cherry Reviewed-by: Laxman Dewangan Reviewed-by: Scott Williams Rebase-Id: R72919d00e28138767da61d673c9e805f74911341 --- include/linux/regulator/tps80031-regulator.h | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 include/linux/regulator/tps80031-regulator.h (limited to 'include/linux') 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 + +/* + * 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 */ -- cgit v1.2.3