Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.15-rc7 64 lines 1.6 kB view raw
1/* 2 * max14577.h - Driver for the Maxim 14577 3 * 4 * Copyright (C) 2013 Samsung Electrnoics 5 * Chanwoo Choi <cw00.choi@samsung.com> 6 * Krzysztof Kozlowski <k.kozlowski@samsung.com> 7 * 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. 12 * 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. 17 * 18 * This driver is based on max8997.h 19 * 20 * MAX14577 has MUIC, Charger devices. 21 * The devices share the same I2C bus and interrupt line 22 * included in this mfd driver. 23 */ 24 25#ifndef __MAX14577_H__ 26#define __MAX14577_H__ 27 28#include <linux/regulator/consumer.h> 29 30/* MAX14577 regulator IDs */ 31enum max14577_regulators { 32 MAX14577_SAFEOUT = 0, 33 MAX14577_CHARGER, 34 35 MAX14577_REG_MAX, 36}; 37 38struct max14577_regulator_platform_data { 39 int id; 40 struct regulator_init_data *initdata; 41 struct device_node *of_node; 42}; 43 44/* 45 * MAX14577 MFD platform data 46 */ 47struct max14577_platform_data { 48 /* IRQ */ 49 int irq_base; 50 51 /* current control GPIOs */ 52 int gpio_pogo_vbatt_en; 53 int gpio_pogo_vbus_en; 54 55 /* current control GPIO control function */ 56 int (*set_gpio_pogo_vbatt_en) (int gpio_val); 57 int (*set_gpio_pogo_vbus_en) (int gpio_val); 58 59 int (*set_gpio_pogo_cb) (int new_dev); 60 61 struct max14577_regulator_platform_data *regulators; 62}; 63 64#endif /* __MAX14577_H__ */