#endif
#define FAKE_BAT_LEVEL 50
-#define DEFAULT_ALARM_INTERVAL 10
-#define SLEEP_ALARM_INTERVAL 30
+#define DEFAULT_ALARM_INTERVAL 30
+#define SLEEP_ALARM_INTERVAL 60
static char *bat_status_str[] = {
"Unknown",
pr_info("%s: start heatbeat\n", __func__);
- smbchg_stay_awake(chip);
+ //smbchg_stay_awake(chip);
//dump register of charger
get_property_from_charger(chip, POWER_SUPPLY_PROP_PRESENT, &state);
schedule_delayed_work(&chip->heartbeat_work,
msecs_to_jiffies(HEARTBEAT_HOLDOFF_MS));
- smbchg_relax(chip);
+// smbchg_relax(chip);
}
static bool smbchg_charger_mmi_factory(void)
static void s2mu00x_battery_complete(struct device *dev)
{
struct s2mu00x_battery_info *battery = dev_get_drvdata(dev);
-
if (battery->monitor_alarm_interval != DEFAULT_ALARM_INTERVAL) {
battery->monitor_alarm_interval = DEFAULT_ALARM_INTERVAL;
pr_info("%s: Recover battery monitoring interval -> %d\n",