2 * max14577.h - Driver for the Maxim 14577
4 * Copyright (C) 2013 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.
25 #ifndef __MAX14577_H__
26 #define __MAX14577_H__
28 #include <linux/mfd/max14577-private.h>
29 #include <linux/regulator/consumer.h>
35 /* MAX14577 regulator IDs */
36 enum max14577_regulators {
43 struct max14577_regulator_platform_data {
45 struct regulator_init_data *initdata;
46 struct device_node *of_node;
50 * MAX14577 MFD platform data
52 struct max14577_platform_data {
56 /* current control GPIOs */
57 int gpio_pogo_vbatt_en;
58 int gpio_pogo_vbus_en;
60 /* current control GPIO control function */
61 int (*set_gpio_pogo_vbatt_en) (int gpio_val);
62 int (*set_gpio_pogo_vbus_en) (int gpio_val);
64 int (*set_gpio_pogo_cb) (int new_dev);
66 struct max14577_regulator_platform_data *regulators;
69 #endif /* __MAX14577_H__ */