OTG has higher priority than wireless charging, we need to:
1. bypass wireless irq work when OTG is plugged
2. report wireless online = 0 when using wireless charging then
plugging OTG
or it will show charging icon even battery status is "Not Charging"
Bug: 11073722
Change-Id: I5a807817a5733d043316d2ad04dde50b0b506895
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
modify hot limit temperature from 55°C to 45°C to stop charging
Bug: 11222237
Change-Id: I81bc8d75bba59635d5b136bbf41cf3090d4d2b4f
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
VBUS drop level may not affect VBUS_DET to trigger IRQ,
it results in AICL result much lower without being noticed,
we check AICL result during battery polling and reconfig it
if neccessary
Bug: 10812199
Change-Id: I98dde8cdd5061d02851cb5f519c437b220906add
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
In high temperature environment, charger will occur over-voltage
and it will latch charging battery function, we need to refine
JEITA function to avoid it
Bug: 9847839
Change-Id: I1185fd3a49e318ebd83b30d843d2b72c39f22e40
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
Because AC has first priority of charging, we need to
disable wireless charging IRQ when AC plugged to avoid
reconfig AC input current frequently
Bug: 9615541
Change-Id: I908b4825193dc463ef11d7eaf47ac61204b6692a
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
USBIN input current limit may load smb345 default(500mA)
even AC adapter due to VBUS drop, we need to reconfig it
Bug: 9474296
Change-Id: I46ae320180a6ec6c3f9c6e9bab6a2b1f7c7ce05a
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
The system resume then suspend too fast
when put on or remove wireless charging dock
Change-Id: Idddb823036b58f1c390aee500574d8379a91731f
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
1. If there is charging source, set Hard/Soft Hot Limit
when system is awake or suspend(shutdown)
2. Monitor battery temperature to set corresponding float voltage
and disable/enable charger
Change-Id: Ia804a935570bbb5a1fe22067a712eaef36e903c0
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
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>
Priority is : 1. AC, 2. wireless charging, 3. USB.
Charger default setting is that wireless charger has higher priority,
so disable wireless charging when AC is plugged in since hardare rev_c.
Bug: 8411313
Change-Id: I6da25d1d6fbdf683421918229babba0ab97afebc
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>