diff options
author | Matt Wang <matt_wang@compal.corp-partner.google.com> | 2022-03-15 09:46:09 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-17 06:41:49 +0000 |
commit | 16b2ceeb0911d191d85ce5d4c3e9144448ebe196 (patch) | |
tree | 82f08c41527316a54f1a801354fc3cfbc9c876ab | |
parent | 4a6bb8c6dd2f26cb44a7475f6e0d834d80c92b54 (diff) | |
download | chrome-ec-16b2ceeb0911d191d85ce5d4c3e9144448ebe196.tar.gz |
isl9241: add Control3 bit5 input current limit
This bit can control to enable/disable the input current limit function.
ISL9241 0x4C Control3
bit5 Input Current Limit Loop
Disables the input current limit loop.
0 = Enable input current limit loop (default)
1 = Disable input current limit loop
BUG=b:222038282
BRANCH=none
TEST=On banshee, use this bit can AC only power on the system.
Signed-off-by: Matt Wang <matt_wang@compal.corp-partner.google.com>
Change-Id: I12bcc968cddcdaf0e91bb6e61dd18dd14a6d07c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3522202
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | driver/charger/isl9241.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/charger/isl9241.h b/driver/charger/isl9241.h index 186f41c6e2..f8d0b18784 100644 --- a/driver/charger/isl9241.h +++ b/driver/charger/isl9241.h @@ -104,6 +104,8 @@ #define ISL9241_REG_CONTROL3 0x4C /* 14: ACLIM Reload (0 - reload, 1 - Do not reload */ #define ISL9241_CONTROL3_ACLIM_RELOAD BIT(14) +/* 5: Input Current Limit Loop (0 - Enable, 1 - Disable */ +#define ISL9241_CONTROL3_INPUT_CURRENT_LIMIT BIT(5) /* 2: Digital Reset (0 - Idle, 1 - Reset */ #define ISL9241_CONTROL3_DIGITAL_RESET BIT(2) /* 0: Enable ADC (0 - Active when charging, 1 - Active always) */ |