Battery charging is controlled through PXA GPIO63 (HimalayaGPIO).
After implementing a driver I realized that TSC2200 does not measure battery voltage. Now comes what we learn from battery.dll:
Other more or less interesting things in battery.dll :
- One can enable battery logging by creating the following key in registry :
HKLM\SOFTWARE\Drivers\Battery\EnableLog = 0x1
Other key :
HKLM\SOFTWARE\Drivers\Battery\LogTime = 0x1
After soft reset you will have \Storage\battlog.txt
1.ID=301fffffff8f631000ffffff9d ACR=4973,pACR=4973,TAD=6200,LLCC=0 FL=1247,Flg=8,RTC=820864744 2.ID=301fffffff8f631000ffffff9d ACR=4974,pACR=4974,TAD=6200,LLCC=0 FL=1247,Flg=8,RTC=820864755 3.ID=301fffffff8f631000ffffff9d ACR=4976,pACR=4976,TAD=6200,LLCC=0 FL=1247,Flg=8,RTC=820864765 4.ID=301fffffff8f631000ffffff9d ACR=4977,pACR=4977,TAD=6200,LLCC=0
ACR grows when battery is charging, and goes down when discharging.