blob: a4c49394c4972b9c0c5d1b8046aa6f0989525612 [file] [log] [blame]
Laxman Dewangan6219929f2012-01-09 20:27:41 +05301/*
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
Laxman Dewangan6219929f2012-01-09 20:27:41 +053029/*
30 * struct tps62360_regulator_platform_data - tps62360 regulator platform data.
31 *
32 * @reg_init_data: The regulator init data.
Laxman Dewangan6219929f2012-01-09 20:27:41 +053033 * @en_discharge: Enable discharge the output capacitor via internal
34 * register.
35 * @en_internal_pulldn: internal pull down enable or not.
36 * @vsel0_gpio: Gpio number for vsel0. It should be -1 if this is tied with
37 * fixed logic.
38 * @vsel1_gpio: Gpio number for vsel1. It should be -1 if this is tied with
39 * fixed logic.
40 * @vsel0_def_state: Default state of vsel0. 1 if it is high else 0.
41 * @vsel1_def_state: Default state of vsel1. 1 if it is high else 0.
42 */
43struct tps62360_regulator_platform_data {
Laxman Dewangan8bdca0092012-05-11 12:08:42 +053044 struct regulator_init_data *reg_init_data;
Laxman Dewangan6219929f2012-01-09 20:27:41 +053045 bool en_discharge;
46 bool en_internal_pulldn;
47 int vsel0_gpio;
48 int vsel1_gpio;
49 int vsel0_def_state;
50 int vsel1_def_state;
51};
52
53#endif /* __LINUX_REGULATOR_TPS62360_H */