diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2019-05-21 13:27:21 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-29 06:27:32 -0700 |
commit | e899f33e51b863c4445992b90ddae8959dd09df9 (patch) | |
tree | 577668aef5cdbcb8129ba806a520ecd17cbb4107 /include | |
parent | 832e76b19ddbb4eba6d6c6e71516ebdcf288f673 (diff) | |
download | chrome-ec-e899f33e51b863c4445992b90ddae8959dd09df9.tar.gz |
chgmgr: Allow boards to customize supplier_priority
Currently, supplier_priority is shared across boards. This patch makes
it weakly defined so that boards can customize it.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
BUG=none
BRANCH=none
TEST=Verify BC12, PD work on Flapjack. buildall.
Change-Id: Ie1e73758c611414512425121164bf7d56cf02697
Reviewed-on: https://chromium-review.googlesource.com/1622889
Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/charge_manager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/charge_manager.h b/include/charge_manager.h index cb32eb623d..938d323fbd 100644 --- a/include/charge_manager.h +++ b/include/charge_manager.h @@ -54,6 +54,12 @@ enum charge_supplier { CHARGE_SUPPLIER_COUNT }; +/* + * Charge supplier priority: lower number indicates higher priority. + * Default priority is in charge_manager.c. It can be overridden by boards. + */ +extern const int supplier_priority[]; + /* Charge tasks report available current and voltage */ struct charge_port_info { int current; |