charger: smb345: setup wireless charging current limit orderly

1. detect wireless charging
2. set input current limit as 300 mA and disable AICL
3. after 2 seconds, set input current limit as 500 mA
4. after 2 seconds, set input current limit as 700 mA

Change-Id: Ia91ea674ba7eea45f92421d13b75a578a2d21a77
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
This commit is contained in:
Hank_Lee
2013-05-08 16:23:33 +08:00
committed by Android Partner Code Review
parent c7b57708c1
commit 3291013b3d
2 changed files with 55 additions and 55 deletions

View File

@@ -83,7 +83,7 @@ struct smb345_charger {
struct delayed_work cable_det_work;
struct delayed_work wireless_isr_work;
struct delayed_work wireless_det_work;
struct delayed_work wireless_reAICL_work;
struct delayed_work wireless_set_current_work;
struct mutex apsd_lock;
struct mutex usb_lock;
struct mutex pinctrl_lock;
@@ -96,6 +96,8 @@ struct smb345_charger {
unsigned int wpc_pok_gpio;
unsigned int wpc_en1;
unsigned int wpc_en2;
unsigned int wpc_curr_limit;
int wpc_curr_limit_count;
};
struct smb345_platform_data {