xref: /linux/include/linux/regulator/da9211.h (revision 1028a37daa148cc6cf85aa2aecb4390ddf1e1e56)
1*1028a37dSJames Ban /*
2*1028a37dSJames Ban  * da9211.h - Regulator device driver for DA9211
3*1028a37dSJames Ban  * Copyright (C) 2014  Dialog Semiconductor Ltd.
4*1028a37dSJames Ban  *
5*1028a37dSJames Ban  * This library is free software; you can redistribute it and/or
6*1028a37dSJames Ban  * modify it under the terms of the GNU Library General Public
7*1028a37dSJames Ban  * License as published by the Free Software Foundation; either
8*1028a37dSJames Ban  * version 2 of the License, or (at your option) any later version.
9*1028a37dSJames Ban  *
10*1028a37dSJames Ban  * This library is distributed in the hope that it will be useful,
11*1028a37dSJames Ban  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*1028a37dSJames Ban  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13*1028a37dSJames Ban  * Library General Public License for more details.
14*1028a37dSJames Ban  */
15*1028a37dSJames Ban 
16*1028a37dSJames Ban #ifndef __LINUX_REGULATOR_DA9211_H
17*1028a37dSJames Ban #define __LINUX_REGULATOR_DA9211_H
18*1028a37dSJames Ban 
19*1028a37dSJames Ban #include <linux/regulator/machine.h>
20*1028a37dSJames Ban 
21*1028a37dSJames Ban #define DA9211_MAX_REGULATORS	2
22*1028a37dSJames Ban 
23*1028a37dSJames Ban struct da9211_pdata {
24*1028a37dSJames Ban 	/*
25*1028a37dSJames Ban 	 * Number of buck
26*1028a37dSJames Ban 	 * 1 : 4 phase 1 buck
27*1028a37dSJames Ban 	 * 2 : 2 phase 2 buck
28*1028a37dSJames Ban 	 */
29*1028a37dSJames Ban 	int num_buck;
30*1028a37dSJames Ban 	struct regulator_init_data *init_data;
31*1028a37dSJames Ban };
32*1028a37dSJames Ban #endif
33