Commit | Line | Data |
---|---|---|
1028a37d | 1 | /* |
7bd39354 JB |
2 | * da9211.h - Regulator device driver for DA9211/DA9213/DA9215 |
3 | * Copyright (C) 2015 Dialog Semiconductor Ltd. | |
1028a37d | 4 | * |
7bd39354 JB |
5 | * This program is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU General Public License | |
7 | * as published by the Free Software Foundation; either version 2 | |
8 | * of the License, or (at your option) any later version. | |
1028a37d | 9 | * |
7bd39354 | 10 | * This program is distributed in the hope that it will be useful, |
1028a37d | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
7bd39354 JB |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | * GNU General Public License for more details. | |
1028a37d JB |
14 | */ |
15 | ||
16 | #ifndef __LINUX_REGULATOR_DA9211_H | |
17 | #define __LINUX_REGULATOR_DA9211_H | |
18 | ||
19 | #include <linux/regulator/machine.h> | |
20 | ||
21 | #define DA9211_MAX_REGULATORS 2 | |
22 | ||
005547e0 JB |
23 | enum da9211_chip_id { |
24 | DA9211, | |
25 | DA9213, | |
7bd39354 | 26 | DA9215, |
005547e0 JB |
27 | }; |
28 | ||
1028a37d JB |
29 | struct da9211_pdata { |
30 | /* | |
31 | * Number of buck | |
32 | * 1 : 4 phase 1 buck | |
33 | * 2 : 2 phase 2 buck | |
34 | */ | |
35 | int num_buck; | |
8c7dd8bc | 36 | int gpio_ren[DA9211_MAX_REGULATORS]; |
076c3b8e | 37 | struct device_node *reg_node[DA9211_MAX_REGULATORS]; |
bf3baca6 | 38 | struct regulator_init_data *init_data[DA9211_MAX_REGULATORS]; |
1028a37d JB |
39 | }; |
40 | #endif |