Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / regulator / da9211.h
blobf2fd2d3bf58f7755afbbfb4faabffaa46bd90841
1 /*
2 * da9211.h - Regulator device driver for DA9211/DA9212
3 * /DA9213/DA9223/DA9214/DA9224/DA9215/DA9225
4 * Copyright (C) 2015 Dialog Semiconductor Ltd.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #ifndef __LINUX_REGULATOR_DA9211_H
18 #define __LINUX_REGULATOR_DA9211_H
20 #include <linux/regulator/machine.h>
22 #define DA9211_MAX_REGULATORS 2
24 enum da9211_chip_id {
25 DA9211,
26 DA9212,
27 DA9213,
28 DA9223,
29 DA9214,
30 DA9224,
31 DA9215,
32 DA9225,
35 struct da9211_pdata {
37 * Number of buck
38 * 1 : 4 phase 1 buck
39 * 2 : 2 phase 2 buck
41 int num_buck;
42 int gpio_ren[DA9211_MAX_REGULATORS];
43 struct device_node *reg_node[DA9211_MAX_REGULATORS];
44 struct regulator_init_data *init_data[DA9211_MAX_REGULATORS];
46 #endif