Flemmard | edcfed5 | 2014-02-21 19:15:45 +0100 | [diff] [blame^] | 1 | |
| 2 | enum max8903b_current { |
| 3 | CHARGE_DISABLE, |
| 4 | CURRENT_ZERO, |
| 5 | CURRENT_100MA, |
| 6 | CURRENT_500MA, |
| 7 | CURRENT_750MA, |
| 8 | CURRENT_900MA, |
| 9 | CURRENT_1000MA, |
| 10 | CURRENT_1400MA, |
| 11 | CURRENT_1500MA, |
| 12 | CURRENT_2000MA, |
| 13 | }; |
| 14 | |
| 15 | |
| 16 | struct max8903b_platform_data { |
| 17 | int DCM_in; |
| 18 | int DCM_in_polarity; |
| 19 | int IUSB_in; |
| 20 | int IUSB_in_polarity; |
| 21 | int USUS_in; |
| 22 | int USUS_in_polarity; |
| 23 | int CEN_N_in; |
| 24 | int CEN_N_in_polarity; |
| 25 | int DOK_N_out; |
| 26 | int CHG_N_out; |
| 27 | int FLT_N_out; |
| 28 | int (*set_DC_CHG_Mode_current)(enum max8903b_current value); |
| 29 | int (*request_release_gpios)(int request); |
| 30 | void (*suspend_gpio_config)(void); |
| 31 | }; |
| 32 | |
| 33 | void max8903b_set_charge_ma (unsigned ma); |
| 34 | void max8903b_disable_charge (void); |
| 35 | |