mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
charger/rt946x: Disable battery thermal protection
We'll handle cell temperature from fuel gauge/battery side. BUG=b:64806333 BRANCH=none TEST=monitor charge current through 'battery' console command Change-Id: I82944de8d1e8834ca1f75c1f616b220e55d94f0e Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/626725 Commit-Ready: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
@@ -338,6 +338,10 @@ static int rt946x_init_setting(void)
|
||||
return rv;
|
||||
/* Disable WDT */
|
||||
rv = rt946x_enable_wdt(0);
|
||||
if (rv)
|
||||
return rv;
|
||||
/* Disable battery thermal protection */
|
||||
rv = rt946x_clr_bit(RT946X_REG_CHGCTRL16, RT946X_MASK_JEITA_EN);
|
||||
if (rv)
|
||||
return rv;
|
||||
rv = rt946x_set_mivr(rt946x_charger_init_setting.mivr);
|
||||
|
||||
@@ -191,6 +191,11 @@
|
||||
#define RT946X_MASK_AICLMEAS (1 << RT946X_SHIFT_AICLMEAS)
|
||||
#define RT946X_MASK_AICLVTH 0x07
|
||||
|
||||
/* ========== CHGCTRL16 0x10 ============ */
|
||||
#define RT946X_SHIFT_JEITA_EN 4
|
||||
|
||||
#define RT946X_MASK_JEITA_EN (1 << RT946X_SHIFT_JEITA_EN)
|
||||
|
||||
/* ========== CHGDPDM1 0x12 ============ */
|
||||
#define RT946X_MASK_USBCHGEN (1 << 7)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user