diff options
author | Diana Z <dzigterman@chromium.org> | 2021-05-12 20:59:53 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-14 20:48:08 +0000 |
commit | 081b591bce6027ee308ab86f9fc1c82245fc7fba (patch) | |
tree | 2a487ea4837d8ebb4cf8ba20a0949488666e5442 /board/mancomb | |
parent | f0927fd016694b7a7507bbb16b529cfa1154e3d1 (diff) | |
download | chrome-ec-081b591bce6027ee308ab86f9fc1c82245fc7fba.tar.gz |
Mancomb: Add BJ to charge manager and correct active charge port set
Register the BJ with the charge manager, and add a per-board callback to
determine the voltage and current associated with it.
Additionally, correct a couple of errors in the active charge port set
function. The BJ port is incapable of sourcing Vbus, and the ports to
be disabled should be all except the port being enabled.
BRANCH=None
BUG=b:187911213,b:187899192
TEST=on mancomb, plug in BJ and verify the correct voltage and current
are registered for it
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I25369e18a56832a79421e179d267c4741916720b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2892183
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'board/mancomb')
-rw-r--r-- | board/mancomb/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/mancomb/board.c b/board/mancomb/board.c index 4f2b6087d1..9fadf1ff59 100644 --- a/board/mancomb/board.c +++ b/board/mancomb/board.c @@ -18,6 +18,12 @@ #include "gpio_list.h" /* Must come after other header files. */ +void board_get_bj_power(int *voltage, int *current) +{ + *voltage = 20000; + *current = 6000; +} + static void board_init(void) { /* TODO */ |