| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. | 
|  | 2 | * | 
|  | 3 | * This program is free software; you can redistribute it and/or modify | 
|  | 4 | * it under the terms of the GNU General Public License version 2 and | 
|  | 5 | * only version 2 as published by the Free Software Foundation. | 
|  | 6 | * | 
|  | 7 | * This program is distributed in the hope that it will be useful, | 
|  | 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|  | 10 | * GNU General Public License for more details. | 
|  | 11 | * | 
|  | 12 | */ | 
|  | 13 | #ifndef __SMB137B_H__ | 
|  | 14 | #define __SMB137B_H__ | 
|  | 15 |  | 
|  | 16 | /** | 
|  | 17 | * struct smb137b_platform_data | 
|  | 18 | * structure to pass board specific information to the smb137b charger driver | 
|  | 19 | * @chgcurrent:	max current the smb137bchip can draw | 
|  | 20 | * @valid_n_gpio:		gpio to debounce insertion/removal | 
|  | 21 | * @chg_detection_config:	machine specific func to configure | 
|  | 22 | *				insertion/removal gpio line | 
|  | 23 | * @batt_mah_rating:		the battery current rating | 
|  | 24 | */ | 
|  | 25 | struct smb137b_platform_data { | 
|  | 26 | int valid_n_gpio; | 
|  | 27 | int (*chg_detection_config) (void); | 
|  | 28 | int batt_mah_rating; | 
|  | 29 | }; | 
|  | 30 |  | 
|  | 31 | void smb137b_otg_power(int on); | 
|  | 32 |  | 
|  | 33 | #endif |