modules: power: Change Heartbeat delay for fast mitigation

Original heartbeat delay was 60s, which makes thermal mitigation while
charging too slow. Changing it to 5s makes it notice battery
temperature change and limit charging current and voltage much faster.

Change-Id: Ib43dba3db18f3509afe1ab448d5f35c9bd33a16e
Signed-off-by: Cesar Santos <cmsantos@motorola.com>
Reviewed-on: https://gerrit.mot.com/1483570
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Cesar Santos 2020-01-14 18:16:35 -03:00 • committed by Cesar Augusto Marcelino dos Santos
commit dad532f85a

View file

@ -171,7 +171,7 @@ enum {
#define WEAK_CHARGER_WAIT 30000
#define EVENT_WEAK_CHARGER_WAIT 0
#define HEARTBEAT_DELAY_MS 60000
#define HEARTBEAT_DELAY_MS 5000
#define HEARTBEAT_DUAL_DELAY_MS 10000
#define HEARTBEAT_FACTORY_MS 1000