summaryrefslogtreecommitdiff
path: root/include/linux/regulator/tps6238x0-regulator.h
blob: bc2b55bca657da892d87298072e20988b3668def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * tps6238x0-regulator.h -- TI TPS623850/TPS623860/TPS623870
 *
 * Interface for regulator driver for TI TPS623850/TPS623860/TPS623870
 * Processor core supply
 *
 * Copyright (C) 2012 NVIDIA Corporation

 * Author: Laxman Dewangan <ldewangan@nvidia.com>
 *
 * 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 __LINUX_REGULATOR_TPS6238X0_H
#define __LINUX_REGULATOR_TPS6238X0_H

/*
 * struct tps6238x0_regulator_platform_data - tps62360 regulator platform data.
 *
 * @init_data: The regulator init data.
 * @en_discharge: Enable discharge the output capacitor via internal
 *                register.
 * @en_internal_pulldn: internal pull down enable or not.
 * @vsel_gpio: Gpio number for vsel. It should be -1 if this is tied with
 *              fixed logic.
 * @vsel_def_state: Default state of vsel. 1 if it is high else 0.
 */
struct tps6238x0_regulator_platform_data {
	struct regulator_init_data *init_data;
	bool en_discharge;
	bool en_internal_pulldn;
	int vsel_gpio;
	int vsel_def_state;
};

#endif /* __LINUX_REGULATOR_TPS6238X0_H */