Now that the EC supports limiting charger current we can fill out the placeholder charger participant. The charger performance states table is moved to the mainboard dptf configuration so it can be tuned for the actual charger/battery in a device. The method to retrieve the number of performance states is implemented based on whether or not the device is connected to AC power. There may need to be a hook that issues a Notify to DPTF to have it re-execute this method if the AC power state changes, but I have not found it yet. The method to set charger current is implemented to find the control value in the charger performance states table and pass that value to the embedded controller. An init function is defined which will disable the charger current limit. BUG=chrome-os-partner:17279 BRANCH=baytrail TEST=build and boot on rambi, start DPTF and heat up device to see the charger current limited as expected. Change-Id: I531fa5903b9ef11573c31e96b7ecfe0a8a4d3c23 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/185759 Reviewed-by: Aaron Durbin <adurbin@chromium.org> |
||
|---|---|---|
| .. | ||
| arch | ||
| console | ||
| cpu | ||
| device | ||
| drivers | ||
| ec | ||
| include | ||
| lib | ||
| mainboard | ||
| northbridge | ||
| soc | ||
| southbridge | ||
| superio | ||
| vendorcode | ||
| Kconfig | ||