coreboot/src
Duncan Laurie 287e893661 baytrail: DPTF: implement charger current limit
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>
2014-02-11 05:24:24 +00:00
..
arch arm: Put assembly functions into separate sections 2014-01-29 21:33:41 +00:00
console ARM: Generalize armv7 as arm. 2013-10-02 09:18:44 +00:00
cpu chromeos: provide stub functions for !CONFIG_VBOOT_VERIFY_FIRMWARE 2014-02-04 23:05:32 +00:00
device pnp: Allow setting of misc register 0xf4 in device tree 2013-12-20 00:37:38 +00:00
drivers Haswell/falco/peppy/slippy: continue to clean up FUI. 2013-12-19 01:17:37 +00:00
ec chrome ec: Add support for limiting charger current 2014-02-11 05:24:21 +00:00
include baytrail: snapshot power state in romstage 2014-01-09 20:15:55 +00:00
lib chromeos: provide stub functions for !CONFIG_VBOOT_VERIFY_FIRMWARE 2014-02-04 23:05:32 +00:00
mainboard rambi: fix write-protect gpio reading at romstage 2014-02-11 05:24:19 +00:00
northbridge haswell: Allow pre-graphics delay 2014-01-25 02:03:21 +00:00
soc baytrail: DPTF: implement charger current limit 2014-02-11 05:24:24 +00:00
southbridge chromeos: provide stub functions for !CONFIG_VBOOT_VERIFY_FIRMWARE 2014-02-04 23:05:32 +00:00
superio pnp: Allow setting of misc register 0xf4 in device tree 2013-12-20 00:37:38 +00:00
vendorcode chromeos: provide stub functions for !CONFIG_VBOOT_VERIFY_FIRMWARE 2014-02-04 23:05:32 +00:00
Kconfig armv8: add support for armv8 cpu 2014-01-07 02:48:47 +00:00