diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-11-14 09:47:27 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-28 10:22:27 -0800 |
commit | 26b4617c4311860b15b6761734673c527cbc74ad (patch) | |
tree | 253fa8da12eb1cdab65e53f3d9f78142ba45bef2 /include/charge_manager.h | |
parent | 675bdc2e2c58cd36161dcec98a5240eb22b43fda (diff) | |
download | chrome-ec-26b4617c4311860b15b6761734673c527cbc74ad.tar.gz |
charge_manager: Add EC_CMD_OVERRIDE_DEDICATED_CHARGER_LIMIT
Usually, the max current and supply voltage of dedicated chargers
are not known to the EC.
This patch adds EC_CMD_OVERRIDE_DEDICATED_CHARGER_LIMIT, which
allows the host to change the max current and supply voltage of the
dedicated charge port.
BUG=b:64442692
BRANCH=none
TEST=make runtests && buildall. Boot Fizz and let coreboot set
the adapter current and voltage.
Change-Id: I29b3f5762f8b316ca363c23e230530cdf4ca207a
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/769152
Diffstat (limited to 'include/charge_manager.h')
-rw-r--r-- | include/charge_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/charge_manager.h b/include/charge_manager.h index 0f2624129e..1e988203e8 100644 --- a/include/charge_manager.h +++ b/include/charge_manager.h @@ -101,6 +101,10 @@ enum ceil_requestor { #define CHARGE_PORT_COUNT \ (CONFIG_USB_PD_PORT_COUNT + CONFIG_DEDICATED_CHARGE_PORT_COUNT) +#if (CONFIG_DEDICATED_CHARGE_PORT_COUNT > 0) && !defined(DEDICATED_CHARGE_PORT) +#error "DEDICATED_CHARGE_PORT must be defined" +#endif + /** * Update charge ceiling for a given port. The ceiling can be set independently |