bio: modify __bio_add_page() to accept pages that don't start a new segment
[linux-2.6/btrfs-unstable.git] / include / linux / mfd / max14577.h
blobc83fbed1c7b64a7e59ab0ab36e8cfa8fb4d1b6af
1 /*
2 * max14577.h - Driver for the Maxim 14577/77836
4 * Copyright (C) 2014 Samsung Electrnoics
5 * Chanwoo Choi <cw00.choi@samsung.com>
6 * Krzysztof Kozlowski <k.kozlowski@samsung.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * This driver is based on max8997.h
20 * MAX14577 has MUIC, Charger devices.
21 * The devices share the same I2C bus and interrupt line
22 * included in this mfd driver.
24 * MAX77836 has additional PMIC and Fuel-Gauge on different I2C slave
25 * addresses.
28 #ifndef __MAX14577_H__
29 #define __MAX14577_H__
31 #include <linux/regulator/consumer.h>
33 /* MAX14577 regulator IDs */
34 enum max14577_regulators {
35 MAX14577_SAFEOUT = 0,
36 MAX14577_CHARGER,
38 MAX14577_REGULATOR_NUM,
41 /* MAX77836 regulator IDs */
42 enum max77836_regulators {
43 MAX77836_SAFEOUT = 0,
44 MAX77836_CHARGER,
45 MAX77836_LDO1,
46 MAX77836_LDO2,
48 MAX77836_REGULATOR_NUM,
51 struct max14577_regulator_platform_data {
52 int id;
53 struct regulator_init_data *initdata;
54 struct device_node *of_node;
58 * MAX14577 MFD platform data
60 struct max14577_platform_data {
61 /* IRQ */
62 int irq_base;
64 /* current control GPIOs */
65 int gpio_pogo_vbatt_en;
66 int gpio_pogo_vbus_en;
68 /* current control GPIO control function */
69 int (*set_gpio_pogo_vbatt_en) (int gpio_val);
70 int (*set_gpio_pogo_vbus_en) (int gpio_val);
72 int (*set_gpio_pogo_cb) (int new_dev);
74 struct max14577_regulator_platform_data *regulators;
77 #endif /* __MAX14577_H__ */