Chanwoo Choi | 83871c0 | 2012-05-14 22:50:39 +0200 | [diff] [blame] | 1 | /* |
| 2 | * max77693.h - Driver for the Maxim 77693 |
| 3 | * |
| 4 | * Copyright (C) 2012 Samsung Electrnoics |
| 5 | * SangYoung Son <hello.son@samsung.com> |
| 6 | * |
| 7 | * This program is not provided / owned by Maxim Integrated Products. |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License as published by |
| 11 | * the Free Software Foundation; either version 2 of the License, or |
| 12 | * (at your option) any later version. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | * |
| 23 | * This driver is based on max8997.h |
| 24 | * |
| 25 | * MAX77693 has PMIC, Charger, Flash LED, Haptic, MUIC devices. |
| 26 | * The devices share the same I2C bus and included in |
| 27 | * this mfd driver. |
| 28 | */ |
| 29 | |
| 30 | #ifndef __LINUX_MFD_MAX77693_H |
| 31 | #define __LINUX_MFD_MAX77693_H |
| 32 | |
Chanwoo Choi | f8457d57 | 2012-10-08 14:41:49 +0900 | [diff] [blame] | 33 | struct max77693_reg_data { |
| 34 | u8 addr; |
| 35 | u8 data; |
| 36 | }; |
| 37 | |
| 38 | struct max77693_muic_platform_data { |
| 39 | struct max77693_reg_data *init_data; |
| 40 | int num_init_data; |
Chanwoo Choi | 297620f | 2012-12-26 13:10:11 +0900 | [diff] [blame] | 41 | |
| 42 | int detcable_delay_ms; |
Chanwoo Choi | 2b75799 | 2012-12-06 21:27:56 +0900 | [diff] [blame^] | 43 | |
| 44 | /* |
| 45 | * Default usb/uart path whether UART/USB or AUX_UART/AUX_USB |
| 46 | * h/w path of COMP2/COMN1 on CONTROL1 register. |
| 47 | */ |
| 48 | int path_usb; |
| 49 | int path_uart; |
Chanwoo Choi | f8457d57 | 2012-10-08 14:41:49 +0900 | [diff] [blame] | 50 | }; |
| 51 | |
Chanwoo Choi | 83871c0 | 2012-05-14 22:50:39 +0200 | [diff] [blame] | 52 | struct max77693_platform_data { |
Chanwoo Choi | 83871c0 | 2012-05-14 22:50:39 +0200 | [diff] [blame] | 53 | int wakeup; |
Chanwoo Choi | f8457d57 | 2012-10-08 14:41:49 +0900 | [diff] [blame] | 54 | |
| 55 | /* muic data */ |
| 56 | struct max77693_muic_platform_data *muic_data; |
Chanwoo Choi | 83871c0 | 2012-05-14 22:50:39 +0200 | [diff] [blame] | 57 | }; |
| 58 | #endif /* __LINUX_MFD_MAX77693_H */ |